Skip to content

Commit 68005dc

Browse files
authored
Merge pull request #12 from petenelson/fix/php-8
Fixed deprecated PHP 8 notices
2 parents 20b5d0b + fda2705 commit 68005dc

14 files changed

+3424
-1065
lines changed

Gruntfile.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ module.exports = function( grunt ) {
1616
wp: [ "release" ]
1717
},
1818

19+
wp_readme_to_markdown: {
20+
options: {
21+
screenshot_url: "https://raw.githubusercontent.com/petenelson/wp-revision-list/trunk/assets/{screenshot}.png",
22+
},
23+
your_target: {
24+
files: {
25+
'README.md': 'readme.txt'
26+
}
27+
},
28+
},
29+
1930
copy: {
2031

2132
// create release for WordPress repository
@@ -43,24 +54,24 @@ module.exports = function( grunt ) {
4354

4455
} ); // grunt.initConfig
4556

46-
4757
// Load tasks
4858
var tasks = [
4959
'grunt-contrib-clean',
5060
'grunt-contrib-copy',
61+
'grunt-wp-readme-to-markdown',
5162
'grunt-wp-i18n'
5263
];
5364

5465
for ( var i = 0; i < tasks.length; i++ ) {
5566
grunt.loadNpmTasks( tasks[ i ] );
5667
};
5768

58-
5969
// Register tasks
70+
// Register tasks
71+
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
6072

6173
// create release for WordPress repository
6274
grunt.registerTask( 'wp', [ 'makepot', 'clean', 'copy' ] );
6375

6476
grunt.util.linefeed = '\n';
65-
6677
};

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require-dev": {
3-
"phpunit/phpunit": "^6.5.6"
3+
"yoast/phpunit-polyfills": "^3.1"
44
}
55
}

0 commit comments

Comments
 (0)