Skip to content

Commit

Permalink
Merge pull request #12 from petenelson/fix/php-8
Browse files Browse the repository at this point in the history
Fixed deprecated PHP 8 notices
  • Loading branch information
petenelson authored Jan 13, 2025
2 parents 20b5d0b + fda2705 commit 68005dc
Show file tree
Hide file tree
Showing 14 changed files with 3,424 additions and 1,065 deletions.
17 changes: 14 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ module.exports = function( grunt ) {
wp: [ "release" ]
},

wp_readme_to_markdown: {
options: {
screenshot_url: "https://raw.githubusercontent.com/petenelson/wp-revision-list/trunk/assets/{screenshot}.png",
},
your_target: {
files: {
'README.md': 'readme.txt'
}
},
},

copy: {

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

} ); // grunt.initConfig


// Load tasks
var tasks = [
'grunt-contrib-clean',
'grunt-contrib-copy',
'grunt-wp-readme-to-markdown',
'grunt-wp-i18n'
];

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


// Register tasks
// Register tasks
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );

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

grunt.util.linefeed = '\n';

};
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"phpunit/phpunit": "^6.5.6"
"yoast/phpunit-polyfills": "^3.1"
}
}
Loading

0 comments on commit 68005dc

Please sign in to comment.