From 5aa0a5b48ba74a11877673b5ca985133ddf45109 Mon Sep 17 00:00:00 2001 From: Matthew Haines-Young <matthewhainesyoung@gmail.com> Date: Thu, 19 Jan 2023 16:34:26 +0000 Subject: [PATCH 01/28] Add note on whitespace in readme --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 311ea59..4d6a079 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,8 +71,9 @@ These are the steps to take to release a new version of Authorship (for contribu 1. If this is a non-patch release, check issues and PRs assigned to the patch or minor milestones that will get skipped. Reassign as necessary. 1. Ensure you're on the `develop` branch and all the changes for this release have been merged in. 1. Ensure `README.md` contains an up to date description, "Tested up to" version, FAQs, screenshots, etc. -1. Run `composer test` and ensure everything passes. -1. Prepare a changelog for [the Releases page on GitHub](https://github.com/humanmade/authorship/releases). + * **Note:** The double spaces at the end of the lines in the plugin header section at the top of README.md must be kept, to ensure line breaks are created. +3. Run `composer test` and ensure everything passes. +4. Prepare a changelog for [the Releases page on GitHub](https://github.com/humanmade/authorship/releases). - The `git changelog -x` command from [Git Extras](https://github.com/tj/git-extras) is handy for this. ### For Release From c7193781bbeb8644688eb05422f257a48b511b70 Mon Sep 17 00:00:00 2001 From: Matthew Haines-Young <matthew@humanmade.com> Date: Fri, 3 Mar 2023 17:07:02 +0000 Subject: [PATCH 02/28] Hide author field in quickedit --- inc/namespace.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/inc/namespace.php b/inc/namespace.php index e3c4b18..27f2b22 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -54,6 +54,7 @@ function bootstrap() : void { add_filter( 'the_author', __NAMESPACE__ . '\\filter_the_author_for_rss' ); add_filter( 'comment_moderation_recipients', __NAMESPACE__ . '\\filter_comment_moderation_recipients', 10, 2 ); add_filter( 'comment_notification_recipients', __NAMESPACE__ . '\\filter_comment_notification_recipients', 10, 2 ); + add_filter( 'quick_edit_dropdown_authors_args', __NAMESPACE__ . '\\hide_quickedit_authors' ); } /** @@ -807,3 +808,18 @@ function filter_comment_notification_recipients( array $emails, int $comment_id return array_unique( array_merge( $emails, $additional_emails ) ); } + +/** + * Hide author select from quick edit. + * + * Bit of a hack, but filter filter_quickedit_authors and include only author with ID 0. + * Also hide if only one author just in case someone someone has created author with 0. + * + * @param array $options Options. + * @return array Options. + */ +function hide_quickedit_authors( array $options ) : array { + $users_opt['hide_if_only_one_author'] = true; + $users_opt['include'] = [ 0 ]; + return $users_opt; +} From 76893b3c8564661f02885343a42e59ef0bf1d233 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Tue, 29 Aug 2023 15:59:32 +0100 Subject: [PATCH 03/28] Update the version of WordPress that's tested to 6.3. --- .github/workflows/test.yml | 4 ++-- composer.json | 4 ++-- composer.lock | 34 +++++++++++++++------------------- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ce744f..5f1e0fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - php: '8.0' experimental: true fail-fast: false - name: WP 5.9 / PHP ${{ matrix.php }} + name: WP 6.3 / PHP ${{ matrix.php }} runs-on: ubuntu-20.04 steps: - name: Checkout repository @@ -48,7 +48,7 @@ jobs: uses: actions/cache@v2 with: path: ${{ steps.composer-cache-dir.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp5.9 + key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp6.3 - name: Install PHP Dependencies run: | diff --git a/composer.json b/composer.json index 498f954..f729068 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +16,12 @@ "phpcompatibility/phpcompatibility-wp": "2.1.0", "phpstan/phpstan": "0.12.57", "phpunit/phpunit": "^9.5.20", - "roots/wordpress": "~5.9.0", + "roots/wordpress": "~6.3.0", "squizlabs/php_codesniffer": "3.5.8", "szepeviktor/phpstan-wordpress": "0.7.1", "vlucas/phpdotenv": "^3", "wp-cli/db-command": "^2", - "wp-phpunit/wp-phpunit": "~5.9.3", + "wp-phpunit/wp-phpunit": "~6.3.0", "yoast/phpunit-polyfills": "^1.0" }, "config": { diff --git a/composer.lock b/composer.lock index 26ca8dc..796ae43 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "96d3d7ebc42beac583c19a3c23b5637e", + "content-hash": "bad8bcd5e016531ceb45c0740decbe9c", "packages": [ { "name": "composer/installers", @@ -1977,7 +1977,7 @@ }, { "name": "roots/wordpress", - "version": "5.9.5", + "version": "6.3.1", "source": { "type": "git", "url": "https://github.com/roots/wordpress.git", @@ -2008,16 +2008,12 @@ ], "support": { "issues": "https://github.com/roots/wordpress/issues", - "source": "https://github.com/roots/wordpress/tree/6.0.3" + "source": "https://github.com/roots/wordpress/tree/6.3.1" }, "funding": [ { "url": "https://github.com/roots", "type": "github" - }, - { - "url": "https://www.patreon.com/rootsdev", - "type": "patreon" } ], "time": "2022-06-01T16:54:37+00:00" @@ -2095,22 +2091,22 @@ }, { "name": "roots/wordpress-no-content", - "version": "5.9.5", + "version": "6.3.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress.git", - "reference": "5.9.5" + "reference": "6.3.1" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/release/wordpress-5.9.5-no-content.zip", - "shasum": "f2e5b1ac5c30b762a7561f28502fa0497f04b670" + "url": "https://downloads.wordpress.org/release/wordpress-6.3.1-no-content.zip", + "shasum": "102bc5e48d9372f1a71fbb133270e113af2363e3" }, "require": { - "php": ">= 5.6.20" + "php": ">= 7.0.0" }, "provide": { - "wordpress/core-implementation": "5.9.5" + "wordpress/core-implementation": "6.3.1" }, "suggest": { "ext-curl": "Performs remote request operations.", @@ -2161,7 +2157,7 @@ "type": "other" } ], - "time": "2022-10-17T22:55:14+00:00" + "time": "2023-08-29T14:23:47+00:00" }, { "name": "sebastian/cli-parser", @@ -4050,16 +4046,16 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "5.9.5", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", - "reference": "f9b5b3a44d3677c7d4803074d81ad3cd12b0eeea" + "reference": "4797791a311c41d213027333e4fcc48073f77df0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/f9b5b3a44d3677c7d4803074d81ad3cd12b0eeea", - "reference": "f9b5b3a44d3677c7d4803074d81ad3cd12b0eeea", + "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/4797791a311c41d213027333e4fcc48073f77df0", + "reference": "4797791a311c41d213027333e4fcc48073f77df0", "shasum": "" }, "type": "library", @@ -4094,7 +4090,7 @@ "issues": "https://github.com/wp-phpunit/issues", "source": "https://github.com/wp-phpunit/wp-phpunit" }, - "time": "2022-08-30T21:14:52+00:00" + "time": "2023-08-09T01:26:57+00:00" }, { "name": "yoast/phpunit-polyfills", From 3dd79e66c2e276f30ad1a07c59576d5562de0e48 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Tue, 29 Aug 2023 16:00:03 +0100 Subject: [PATCH 04/28] Test on more versions of PHP. --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f1e0fc..46fa5c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,10 +12,11 @@ jobs: build: strategy: matrix: - php: ['7.4'] - include: - - php: '8.0' - experimental: true + php: + - '7.4' + - '8.0' + - '8.1' + - '8.2' fail-fast: false name: WP 6.3 / PHP ${{ matrix.php }} runs-on: ubuntu-20.04 From ca0c76e663c3e5c1b20db09057fb137fa025a58f Mon Sep 17 00:00:00 2001 From: Nicolas Lemoine <nico.lemoine@gmail.com> Date: Sat, 23 Sep 2023 15:58:22 +0200 Subject: [PATCH 05/28] Fix get author term field The field used to map user ID is the slug (used elsewhere to make relevant tax queries) --- inc/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template.php b/inc/template.php index 761288a..f1335c2 100644 --- a/inc/template.php +++ b/inc/template.php @@ -35,7 +35,7 @@ function get_author_ids( WP_Post $post ) : array { } return array_map( function ( WP_Term $term ) : int { - return intval( $term->name ); + return intval( $term->slug ); }, $authors ); } From 427a38259938b05e4f106a0721fa8981538c4150 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Mon, 26 Feb 2024 17:53:04 +0000 Subject: [PATCH 06/28] Update to WordPress 6.4. --- .github/workflows/test.yml | 4 ++-- composer.json | 4 ++-- composer.lock | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46fa5c9..9b4622e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - '8.1' - '8.2' fail-fast: false - name: WP 6.3 / PHP ${{ matrix.php }} + name: WP 6.4 / PHP ${{ matrix.php }} runs-on: ubuntu-20.04 steps: - name: Checkout repository @@ -49,7 +49,7 @@ jobs: uses: actions/cache@v2 with: path: ${{ steps.composer-cache-dir.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp6.3 + key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp6.4 - name: Install PHP Dependencies run: | diff --git a/composer.json b/composer.json index f729068..2b66b33 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +16,12 @@ "phpcompatibility/phpcompatibility-wp": "2.1.0", "phpstan/phpstan": "0.12.57", "phpunit/phpunit": "^9.5.20", - "roots/wordpress": "~6.3.0", + "roots/wordpress": "~6.4.0", "squizlabs/php_codesniffer": "3.5.8", "szepeviktor/phpstan-wordpress": "0.7.1", "vlucas/phpdotenv": "^3", "wp-cli/db-command": "^2", - "wp-phpunit/wp-phpunit": "~6.3.0", + "wp-phpunit/wp-phpunit": "~6.4.0", "yoast/phpunit-polyfills": "^1.0" }, "config": { diff --git a/composer.lock b/composer.lock index 796ae43..4f0bc5f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bad8bcd5e016531ceb45c0740decbe9c", + "content-hash": "630550a772a2a7318a2345383990f18d", "packages": [ { "name": "composer/installers", From 5f406798f8f79879d9ddb0e047663f26aba06c79 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Mon, 26 Feb 2024 17:53:11 +0000 Subject: [PATCH 07/28] Add testing for PHP 8.3. --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b4622e..4f4e9af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: - '8.0' - '8.1' - '8.2' + - '8.3' fail-fast: false name: WP 6.4 / PHP ${{ matrix.php }} runs-on: ubuntu-20.04 From 58a779d46da0f2c8db5ba12c4c8a1df23a217e72 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Mon, 26 Feb 2024 17:54:32 +0000 Subject: [PATCH 08/28] Fully update the lock file. --- composer.lock | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/composer.lock b/composer.lock index 4f0bc5f..498a02c 100644 --- a/composer.lock +++ b/composer.lock @@ -3128,12 +3128,12 @@ "version": "3.5.8", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", "reference": "9d583721a7157ee997f235f327de038e7ea6dac4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9d583721a7157ee997f235f327de038e7ea6dac4", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/9d583721a7157ee997f235f327de038e7ea6dac4", "reference": "9d583721a7157ee997f235f327de038e7ea6dac4", "shasum": "" }, @@ -3177,6 +3177,20 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], "time": "2020-10-23T02:01:07+00:00" }, { @@ -4163,5 +4177,5 @@ "php": ">=7.2" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } From b3815e50f6ea1724a886dcc8bfd5d9066a4586c3 Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Mon, 26 Feb 2024 17:56:16 +0000 Subject: [PATCH 09/28] Update the WordPress packages. --- composer.lock | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/composer.lock b/composer.lock index 498a02c..d33e226 100644 --- a/composer.lock +++ b/composer.lock @@ -1977,7 +1977,7 @@ }, { "name": "roots/wordpress", - "version": "6.3.1", + "version": "6.4.3", "source": { "type": "git", "url": "https://github.com/roots/wordpress.git", @@ -2008,7 +2008,7 @@ ], "support": { "issues": "https://github.com/roots/wordpress/issues", - "source": "https://github.com/roots/wordpress/tree/6.3.1" + "source": "https://github.com/roots/wordpress/tree/6.4.3" }, "funding": [ { @@ -2091,22 +2091,22 @@ }, { "name": "roots/wordpress-no-content", - "version": "6.3.1", + "version": "6.4.3", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress.git", - "reference": "6.3.1" + "reference": "6.4.3" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/release/wordpress-6.3.1-no-content.zip", - "shasum": "102bc5e48d9372f1a71fbb133270e113af2363e3" + "url": "https://downloads.wordpress.org/release/wordpress-6.4.3-no-content.zip", + "shasum": "4138c6337bf524159b406d5b27916deebb0f78df" }, "require": { "php": ">= 7.0.0" }, "provide": { - "wordpress/core-implementation": "6.3.1" + "wordpress/core-implementation": "6.4.3" }, "suggest": { "ext-curl": "Performs remote request operations.", @@ -2157,7 +2157,7 @@ "type": "other" } ], - "time": "2023-08-29T14:23:47+00:00" + "time": "2024-01-30T19:32:01+00:00" }, { "name": "sebastian/cli-parser", @@ -4060,16 +4060,16 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.3.0", + "version": "6.4.2", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", - "reference": "4797791a311c41d213027333e4fcc48073f77df0" + "reference": "aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/4797791a311c41d213027333e4fcc48073f77df0", - "reference": "4797791a311c41d213027333e4fcc48073f77df0", + "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099", + "reference": "aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099", "shasum": "" }, "type": "library", @@ -4104,7 +4104,7 @@ "issues": "https://github.com/wp-phpunit/issues", "source": "https://github.com/wp-phpunit/wp-phpunit" }, - "time": "2023-08-09T01:26:57+00:00" + "time": "2023-12-07T00:50:08+00:00" }, { "name": "yoast/phpunit-polyfills", From cbf9e8f563d5f6936ad6f433ff1b226aefc06e4e Mon Sep 17 00:00:00 2001 From: John Blackbourn <john@humanmade.com> Date: Mon, 26 Feb 2024 18:02:11 +0000 Subject: [PATCH 10/28] Update the PHPUnit polyfills. --- composer.lock | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/composer.lock b/composer.lock index d33e226..93d29cd 100644 --- a/composer.lock +++ b/composer.lock @@ -4108,16 +4108,16 @@ }, { "name": "yoast/phpunit-polyfills", - "version": "1.0.4", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "3c621ff5429d2b1ff96dc5808ad6cde99d31ea4c" + "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/3c621ff5429d2b1ff96dc5808ad6cde99d31ea4c", - "reference": "3c621ff5429d2b1ff96dc5808ad6cde99d31ea4c", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/224e4a1329c03d8bad520e3fc4ec980034a4b212", + "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212", "shasum": "" }, "require": { @@ -4125,13 +4125,12 @@ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "require-dev": { - "yoast/yoastcs": "^2.2.1" + "yoast/yoastcs": "^2.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.x-dev", - "dev-develop": "1.x-dev" + "dev-main": "2.x-dev" } }, "autoload": { @@ -4165,7 +4164,7 @@ "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", "source": "https://github.com/Yoast/PHPUnit-Polyfills" }, - "time": "2022-11-16T09:07:52+00:00" + "time": "2023-08-19T14:25:08+00:00" } ], "aliases": [], From 665d5dcc9e2fac6721a67ed6b1eb77a6ef551a14 Mon Sep 17 00:00:00 2001 From: Mauricio Gelves <mgelves@gmail.com> Date: Wed, 26 Jun 2024 13:19:03 +0200 Subject: [PATCH 11/28] Added extra contol on conditional. --- src/components/AuthorsSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AuthorsSelect.tsx b/src/components/AuthorsSelect.tsx index 5c90ae7..071d600 100644 --- a/src/components/AuthorsSelect.tsx +++ b/src/components/AuthorsSelect.tsx @@ -58,7 +58,7 @@ const AuthorsSelect = ( props: AuthorsSelectProps ): ReactElement => { if ( ! selected.length && isEqual( preloadedAuthorIDs, currentAuthorIDs ) ) { setSelected( preloadedAuthorOptions.authors ); - } else if ( currentAuthorIDs.length && ! selected.length ) { + } else if ( currentAuthorIDs !== undefined && currentAuthorIDs.length && ! selected.length ) { const path = addQueryArgs( '/authorship/v1/users/', From 64eb9a97c10d05b6cba90b4999cca24542bcce96 Mon Sep 17 00:00:00 2001 From: Mauricio Gelves <mgelves@gmail.com> Date: Wed, 26 Jun 2024 15:28:35 +0200 Subject: [PATCH 12/28] The v0.2.17 release --- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- plugin.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 050a7bb..0150b67 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Authorship -Stable tag: 0.2.16 +Stable tag: 0.2.17 Requires at least: 5.4 Tested up to: 6.2 Requires PHP: 7.2 diff --git a/package-lock.json b/package-lock.json index e6f93e8..193e028 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@humanmade/authorship", - "version": "0.2.16", + "version": "0.2.17", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 32566c4..9272c18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@humanmade/authorship", - "version": "0.2.16", + "version": "0.2.17", "description": "Authorship", "private": true, "main": "src/index.tsx", diff --git a/plugin.php b/plugin.php index 4369d15..75f3671 100644 --- a/plugin.php +++ b/plugin.php @@ -9,7 +9,7 @@ * * Plugin Name: Authorship * Description: Authorship plugin for WordPress. - * Version: 0.2.16 + * Version: 0.2.17 * Plugin URI: https://github.com/humanmade/authorship * Author: Human Made, initially funded by Siemens. * Author URI: https://humanmade.com/ From dcefcc512f6f835efff454e68e6d12ca55317321 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 27 Jun 2024 13:22:01 +0100 Subject: [PATCH 13/28] Fixing builds and start command --- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/js-tests.yml | 14 +++++++------- .github/workflows/php-standards.yml | 10 +++++----- .github/workflows/test-nightly.yml | 8 ++++---- .github/workflows/test.yml | 8 ++++---- package-lock.json | 2 +- package.json | 5 ++++- 7 files changed, 35 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bff772..02c588a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,15 +10,15 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Install PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: php-version: 7.4 extensions: mysqli, xmlwriter @@ -28,11 +28,11 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" + echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache-dir.outputs.dir }} key: ${{ runner.os }}-composer-7.4-${{ hashFiles('composer.lock') }} @@ -43,16 +43,16 @@ jobs: - name: Get npm cache directory id: npm-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" - echo "::set-output name=npm-version::$(npm -v)" - echo "::set-output name=node-version::$(node -v)" + echo "{dir}=$(npm config get cache)" >> $GITHUB_OUTPUT + echo "{npm_version}=$(npm -v)" >> $GITHUB_OUTPUT + echo "{node_version}=$(node -v)" >> $GITHUB_OUTPUT - name: Cache JS Dependencies id: npm-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node-version }}-${{ steps.npm-cache-dir.outputs.npm-version }}-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node_version }}-${{ steps.npm-cache-dir.outputs.npm_version }}-${{ hashFiles('package-lock.json') }} - name: Install JS Dependencies run: npm install --legacy-peer-deps diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml index b59e752..069907c 100644 --- a/.github/workflows/js-tests.yml +++ b/.github/workflows/js-tests.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -29,16 +29,16 @@ jobs: - name: Get npm cache directory id: npm-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" - echo "::set-output name=npm-version::$(npm -v)" - echo "::set-output name=node-version::$(node-v)" + echo "{dir}=$(npm config get cache)" >> $GITHUB_OUTPUT + echo "{npm_version}=$(npm -v)" >> $GITHUB_OUTPUT + echo "{node_version}=$(node -v)" >> $GITHUB_OUTPUT - name: Cache Dependencies id: npm-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node-version }}-${{ steps.npm-cache-dir.outputs.npm-version }}-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node_version }}-${{ steps.npm-cache-dir.outputs.npm_version }}-${{ hashFiles('package-lock.json') }} - name: Install Dependencies run: npm install --legacy-peer-deps diff --git a/.github/workflows/php-standards.yml b/.github/workflows/php-standards.yml index a5fddc4..fca0952 100644 --- a/.github/workflows/php-standards.yml +++ b/.github/workflows/php-standards.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Install PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: php-version: '7.4' coverage: none @@ -31,11 +31,11 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" + echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache-dir.outputs.dir }} key: ${{ runner.os }}-composer-7.2-${{ hashFiles('composer.lock') }} @@ -45,7 +45,7 @@ jobs: composer install --prefer-dist --no-progress --no-suggest --no-interaction - name: PHPCS cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: tests/cache key: ${{ runner.os }}-phpcs-7.2-${{ hashFiles('plugin.php') }} diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index 114edf0..5f0804a 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -18,10 +18,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Install PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: mysqli, xmlwriter @@ -38,11 +38,11 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" + echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache-dir.outputs.dir }} key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ce744f..ddb0593 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Install PHP - uses: shivammathur/setup-php@2.7.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: mysqli, xmlwriter @@ -41,11 +41,11 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" + echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache-dir.outputs.dir }} key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp5.9 diff --git a/package-lock.json b/package-lock.json index 193e028..7fcb779 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@humanmade/authorship", - "version": "0.2.14", + "version": "0.2.17", "license": "GPL-3.0-or-later", "dependencies": { "@types/react-select": "^3.0.26", diff --git a/package.json b/package.json index 9272c18..a99b5f3 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,15 @@ "lint": "concurrently -n CSS,JS -c cyan.bold,yellow.bold \"npm run lint:css\" \"npm run lint:js\"", "lint:css": "stylelint src/", "lint:js": "eslint --ext .js,.jsx,.ts,.tsx src/", - "start": "webpack-dev-server --config=.config/webpack.config.dev.js", + "start": "webpack serve --config=.config/webpack.config.dev.js", "build": "webpack --config=.config/webpack.config.prod.js", "bump:patch": "bump patch --commit 'The v%s release' package.json package-lock.json README.md plugin.php", "bump:minor": "bump minor --commit 'The v%s release' package.json package-lock.json README.md plugin.php", "bump:major": "bump major --commit 'The v%s release' package.json package-lock.json README.md plugin.php" }, + "engines": { + "node": "16" + }, "dependencies": { "@types/react-select": "^3.0.26", "@wordpress/editor": "^9.24.3", From 4ffd68cdd0056a232dfdaab829e7174fe5cb62ce Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 27 Jun 2024 13:25:54 +0100 Subject: [PATCH 14/28] Remove curly braces from constant names --- .github/workflows/build.yml | 14 +++++++------- .github/workflows/js-tests.yml | 10 +++++----- .github/workflows/php-standards.yml | 4 ++-- .github/workflows/test-nightly.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02c588a..33b56d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,13 +28,13 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + echo "DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache uses: actions/cache@v4 with: - path: ${{ steps.composer-cache-dir.outputs.dir }} + path: ${{ steps.composer-cache-dir.outputs.DIR }} key: ${{ runner.os }}-composer-7.4-${{ hashFiles('composer.lock') }} - name: Install PHP Dependencies @@ -43,16 +43,16 @@ jobs: - name: Get npm cache directory id: npm-cache-dir run: | - echo "{dir}=$(npm config get cache)" >> $GITHUB_OUTPUT - echo "{npm_version}=$(npm -v)" >> $GITHUB_OUTPUT - echo "{node_version}=$(node -v)" >> $GITHUB_OUTPUT + echo "DIR=$(npm config get cache)" >> $GITHUB_OUTPUT + echo "NPM_VERSION=$(npm -v)" >> $GITHUB_OUTPUT + echo "NODE_VERSION=$(node -v)" >> $GITHUB_OUTPUT - name: Cache JS Dependencies id: npm-cache uses: actions/cache@v4 with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node_version }}-${{ steps.npm-cache-dir.outputs.npm_version }}-${{ hashFiles('package-lock.json') }} + path: ${{ steps.npm-cache-dir.outputs.DIR }} + key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.NODE_VERSION }}-${{ steps.npm-cache-dir.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }} - name: Install JS Dependencies run: npm install --legacy-peer-deps diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml index 069907c..5fd7330 100644 --- a/.github/workflows/js-tests.yml +++ b/.github/workflows/js-tests.yml @@ -29,16 +29,16 @@ jobs: - name: Get npm cache directory id: npm-cache-dir run: | - echo "{dir}=$(npm config get cache)" >> $GITHUB_OUTPUT - echo "{npm_version}=$(npm -v)" >> $GITHUB_OUTPUT - echo "{node_version}=$(node -v)" >> $GITHUB_OUTPUT + echo "DIR=$(npm config get cache)" >> $GITHUB_OUTPUT + echo "NPM_VERSION=$(npm -v)" >> $GITHUB_OUTPUT + echo "NODE_VERSION=$(node -v)" >> $GITHUB_OUTPUT - name: Cache Dependencies id: npm-cache uses: actions/cache@v4 with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node_version }}-${{ steps.npm-cache-dir.outputs.npm_version }}-${{ hashFiles('package-lock.json') }} + path: ${{ steps.npm-cache-dir.outputs.DIR }} + key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.NODE_VERSION }}-${{ steps.npm-cache-dir.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }} - name: Install Dependencies run: npm install --legacy-peer-deps diff --git a/.github/workflows/php-standards.yml b/.github/workflows/php-standards.yml index fca0952..f9f9f9b 100644 --- a/.github/workflows/php-standards.yml +++ b/.github/workflows/php-standards.yml @@ -31,13 +31,13 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + echo "DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache uses: actions/cache@v4 with: - path: ${{ steps.composer-cache-dir.outputs.dir }} + path: ${{ steps.composer-cache-dir.outputs.DIR }} key: ${{ runner.os }}-composer-7.2-${{ hashFiles('composer.lock') }} - name: Install PHP Dependencies diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index 5f0804a..2480e87 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -38,13 +38,13 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + echo "DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache uses: actions/cache@v4 with: - path: ${{ steps.composer-cache-dir.outputs.dir }} + path: ${{ steps.composer-cache-dir.outputs.DIR }} key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }} - name: Install PHP Dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddb0593..a4734c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,13 +41,13 @@ jobs: - name: Get Composer Cache Directory id: composer-cache-dir run: | - echo "{dir}=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + echo "DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache PHP Dependencies id: composer-cache uses: actions/cache@v4 with: - path: ${{ steps.composer-cache-dir.outputs.dir }} + path: ${{ steps.composer-cache-dir.outputs.DIR }} key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp5.9 - name: Install PHP Dependencies From e5a1404be1655a3e6d55e1f74cff16b191657ecc Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 27 Jun 2024 13:36:59 +0100 Subject: [PATCH 15/28] Note node version in readme --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0150b67..aafe126 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Authorship -Stable tag: 0.2.17 -Requires at least: 5.4 -Tested up to: 6.2 -Requires PHP: 7.2 -License: GPL v3 or later -Contributors: johnbillion, humanmade +Stable tag: 0.2.17 +Requires at least: 5.4 +Tested up to: 6.2 +Requires PHP: 7.2 +License: GPL v3 or later +Contributors: johnbillion, humanmade A modern approach to author attribution in WordPress. @@ -61,9 +61,10 @@ _Features without a checkmark are still work in progress._ ### For development use * Clone this repo into your plugins directory -* Install the dependencies: +* Ensure you have Composer v2 and Node v16 installed +* Install the dependencies: `composer install && npm install` -* Start the dev server: +* Start the dev server: `npm run start` ## Design Decisions From ceb3a016c33b22005e8a0f76b6773976fcce82ca Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <23417+roborourke@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:45:08 +0100 Subject: [PATCH 16/28] Restore spaces for line breaks --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aafe126..b0d6a20 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Authorship -Stable tag: 0.2.17 -Requires at least: 5.4 -Tested up to: 6.2 -Requires PHP: 7.2 -License: GPL v3 or later -Contributors: johnbillion, humanmade +Stable tag: 0.2.17 +Requires at least: 5.4 +Tested up to: 6.2 +Requires PHP: 7.2 +License: GPL v3 or later +Contributors: johnbillion, humanmade A modern approach to author attribution in WordPress. From ca700bf00fdb3f51561575adcc1573f910ae1721 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <23417+roborourke@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:38:47 +0100 Subject: [PATCH 17/28] Update test-nightly.yml to use `dev-main` The roots/wordpress repo has dropped all branches except for `main` --- .github/workflows/test-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index 2480e87..faaa778 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -50,7 +50,7 @@ jobs: - name: Install PHP Dependencies run: | composer install --prefer-dist --no-progress --no-suggest --no-interaction --ignore-platform-reqs - composer require --dev --update-with-dependencies --prefer-dist roots/wordpress="dev-nightly" wp-phpunit/wp-phpunit="dev-master" + composer require --dev --update-with-dependencies --prefer-dist roots/wordpress="dev-main" wp-phpunit/wp-phpunit="dev-master" - name: Run the tests run: | From 411f8247093998cc6b651db3f63f948982c9e492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Wed, 17 Jul 2024 22:22:02 +0200 Subject: [PATCH 18/28] Fix a typo in InsertPostHandler --- inc/class-insert-post-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-insert-post-handler.php b/inc/class-insert-post-handler.php index 0399660..59d9fa9 100644 --- a/inc/class-insert-post-handler.php +++ b/inc/class-insert-post-handler.php @@ -66,7 +66,7 @@ function action_wp_insert_post( int $post_ID, WP_Post $post, bool $update ) : vo $authors = $unsanitized_postarr[ POSTS_PARAM ]; } else { /** - * Set the default authorship author. Defaults to the orignal post author. + * Set the default authorship author. Defaults to the original post author. * * @param array $authors Authors to add to a post on insert if none have been passed. Default to post author. * @param WP_Post $post Post object. From 24f698161a790ba0132d983e1d9aba0438ff7843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Wed, 17 Jul 2024 22:23:00 +0200 Subject: [PATCH 19/28] Fix a typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b0d6a20..70e4054 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ This endpoint allows: ### `authorship` field -This field is added to the endpoint for all suported post types (by default, ones which that have post type support for `author`), for example `wp/v2/posts`. This field is readable and writable and accepts and provides an array of IDs of users attributed to the post. +This field is added to the endpoint for all supported post types (by default, ones which that have post type support for `author`), for example `wp/v2/posts`. This field is readable and writable and accepts and provides an array of IDs of users attributed to the post. In addition, user objects are embedded in the `_embedded['wp:authorship']` field in the response if `_embed` is set and the authenticated user can list users. From 97109ffd4e40a3dc4c187f9174d50ff7ea97de0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Wed, 17 Jul 2024 22:37:08 +0200 Subject: [PATCH 20/28] Remove exit after WP_CLI::error --- inc/cli/class-migrate-command.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/inc/cli/class-migrate-command.php b/inc/cli/class-migrate-command.php index 017303b..55394ac 100644 --- a/inc/cli/class-migrate-command.php +++ b/inc/cli/class-migrate-command.php @@ -260,7 +260,6 @@ function ppa( $args, $assoc_args ) : void { if ( is_wp_error( $ppa_terms ) ) { WP_CLI::error( 'There was an error fetching the PublishPress Author data, is the plugin activated?', false ); WP_CLI::error( $ppa_terms ); - exit; } /** @@ -363,7 +362,6 @@ private function get_ppa_user_id( WP_Term $ppa_author, bool $create_users = fals if ( is_wp_error( $ppa_user_id ) ) { WP_CLI::error( 'Could not create Authorship user with these arguments:' ); WP_CLI::error( $ppa_user_id ); - return -1; } return $ppa_user_id; From 302f561a8ad27064af12bf3c067d3de4cb4d2fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Wed, 17 Jul 2024 22:38:32 +0200 Subject: [PATCH 21/28] Fix exit parameter --- inc/cli/class-migrate-command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/cli/class-migrate-command.php b/inc/cli/class-migrate-command.php index 55394ac..c33e156 100644 --- a/inc/cli/class-migrate-command.php +++ b/inc/cli/class-migrate-command.php @@ -360,7 +360,7 @@ private function get_ppa_user_id( WP_Term $ppa_author, bool $create_users = fals // If this fails we want the debug data, so print out the // arguments so we can reproduce later. if ( is_wp_error( $ppa_user_id ) ) { - WP_CLI::error( 'Could not create Authorship user with these arguments:' ); + WP_CLI::error( 'Could not create Authorship user with these arguments:', false ); WP_CLI::error( $ppa_user_id ); } From 115f1413ee79446c841db3111e0b9e9bb0b4b2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Mon, 22 Jul 2024 17:19:04 +0200 Subject: [PATCH 22/28] Explicitly use exit --- inc/cli/class-migrate-command.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/cli/class-migrate-command.php b/inc/cli/class-migrate-command.php index c33e156..47f4ab4 100644 --- a/inc/cli/class-migrate-command.php +++ b/inc/cli/class-migrate-command.php @@ -259,7 +259,8 @@ function ppa( $args, $assoc_args ) : void { // Usually invalid taxonomy, lets catch and report this. if ( is_wp_error( $ppa_terms ) ) { WP_CLI::error( 'There was an error fetching the PublishPress Author data, is the plugin activated?', false ); - WP_CLI::error( $ppa_terms ); + WP_CLI::error( $ppa_terms, false ); + exit; } /** @@ -361,7 +362,8 @@ private function get_ppa_user_id( WP_Term $ppa_author, bool $create_users = fals // arguments so we can reproduce later. if ( is_wp_error( $ppa_user_id ) ) { WP_CLI::error( 'Could not create Authorship user with these arguments:', false ); - WP_CLI::error( $ppa_user_id ); + WP_CLI::error( $ppa_user_id, false ); + exit; } return $ppa_user_id; From b15242f7a19c4ca0ff1248bcd1a31e5f1b5ded48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Thu, 25 Jul 2024 15:27:58 +0200 Subject: [PATCH 23/28] Update inc/cli/class-migrate-command.php Co-authored-by: Robert O'Rourke <23417+roborourke@users.noreply.github.com> --- inc/cli/class-migrate-command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/cli/class-migrate-command.php b/inc/cli/class-migrate-command.php index 47f4ab4..594cca9 100644 --- a/inc/cli/class-migrate-command.php +++ b/inc/cli/class-migrate-command.php @@ -260,7 +260,7 @@ function ppa( $args, $assoc_args ) : void { if ( is_wp_error( $ppa_terms ) ) { WP_CLI::error( 'There was an error fetching the PublishPress Author data, is the plugin activated?', false ); WP_CLI::error( $ppa_terms, false ); - exit; + exit( 1 ); } /** From 95e49f340c4de97fe6797bb75b90b96196d9c9d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= <viktor@szepe.net> Date: Thu, 25 Jul 2024 15:28:04 +0200 Subject: [PATCH 24/28] Update inc/cli/class-migrate-command.php Co-authored-by: Robert O'Rourke <23417+roborourke@users.noreply.github.com> --- inc/cli/class-migrate-command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/cli/class-migrate-command.php b/inc/cli/class-migrate-command.php index 594cca9..cc86bcc 100644 --- a/inc/cli/class-migrate-command.php +++ b/inc/cli/class-migrate-command.php @@ -363,7 +363,7 @@ private function get_ppa_user_id( WP_Term $ppa_author, bool $create_users = fals if ( is_wp_error( $ppa_user_id ) ) { WP_CLI::error( 'Could not create Authorship user with these arguments:', false ); WP_CLI::error( $ppa_user_id, false ); - exit; + exit( 1 ); } return $ppa_user_id; From 3fc76cb05be954625ca8951fc81414061e0cc7f1 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 25 Jul 2024 15:02:11 +0100 Subject: [PATCH 25/28] Update to WP 6.6 --- composer.json | 4 +- composer.lock | 1103 ++++++++++++++++++++++++------------------------- 2 files changed, 533 insertions(+), 574 deletions(-) diff --git a/composer.json b/composer.json index 2b66b33..0ab3601 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +16,12 @@ "phpcompatibility/phpcompatibility-wp": "2.1.0", "phpstan/phpstan": "0.12.57", "phpunit/phpunit": "^9.5.20", - "roots/wordpress": "~6.4.0", + "roots/wordpress": "~6.6.0", "squizlabs/php_codesniffer": "3.5.8", "szepeviktor/phpstan-wordpress": "0.7.1", "vlucas/phpdotenv": "^3", "wp-cli/db-command": "^2", - "wp-phpunit/wp-phpunit": "~6.4.0", + "wp-phpunit/wp-phpunit": "~6.6.0", "yoast/phpunit-polyfills": "^1.0" }, "config": { diff --git a/composer.lock b/composer.lock index 93d29cd..7d3a273 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "630550a772a2a7318a2345383990f18d", + "content-hash": "b70139d6f08d0088c9df7b3ae6751571", "packages": [ { "name": "composer/installers", - "version": "v2.2.0", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/composer/installers.git", - "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35" + "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35", - "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35", + "url": "https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e", + "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e", "shasum": "" }, "require": { @@ -25,12 +25,12 @@ "php": "^7.2 || ^8.0" }, "require-dev": { - "composer/composer": "1.6.* || ^2.0", - "composer/semver": "^1 || ^3", - "phpstan/phpstan": "^0.12.55", - "phpstan/phpstan-phpunit": "^0.12.16", - "symfony/phpunit-bridge": "^5.3", - "symfony/process": "^5" + "composer/composer": "^1.10.27 || ^2.7", + "composer/semver": "^1.7.2 || ^3.4.0", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-phpunit": "^1", + "symfony/phpunit-bridge": "^7.1.1", + "symfony/process": "^5 || ^6 || ^7" }, "type": "composer-plugin", "extra": { @@ -87,6 +87,7 @@ "cockpit", "codeigniter", "concrete5", + "concreteCMS", "croogo", "dokuwiki", "drupal", @@ -133,7 +134,7 @@ ], "support": { "issues": "https://github.com/composer/installers/issues", - "source": "https://github.com/composer/installers/tree/v2.2.0" + "source": "https://github.com/composer/installers/tree/v2.3.0" }, "funding": [ { @@ -149,20 +150,20 @@ "type": "tidelift" } ], - "time": "2022-08-20T06:45:11+00:00" + "time": "2024-06-24T20:46:46+00:00" }, { "name": "humanmade/asset-loader", - "version": "v0.6.3", + "version": "v0.6.4", "source": { "type": "git", "url": "https://github.com/humanmade/asset-loader.git", - "reference": "fc0c62edcf7f54f783eaf9855aed3633a8811966" + "reference": "1cc2bdcae19b2c6a4900df3cf827ab573ed0beac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/humanmade/asset-loader/zipball/fc0c62edcf7f54f783eaf9855aed3633a8811966", - "reference": "fc0c62edcf7f54f783eaf9855aed3633a8811966", + "url": "https://api.github.com/repos/humanmade/asset-loader/zipball/1cc2bdcae19b2c6a4900df3cf827ab573ed0beac", + "reference": "1cc2bdcae19b2c6a4900df3cf827ab573ed0beac", "shasum": "" }, "require": { @@ -181,9 +182,9 @@ "description": "Utilities to seamlessly consume Webpack-bundled assets in WordPress themes & plugins.", "support": { "issues": "https://github.com/humanmade/asset-loader/issues", - "source": "https://github.com/humanmade/asset-loader/tree/v0.6.3" + "source": "https://github.com/humanmade/asset-loader/tree/v0.6.4" }, - "time": "2022-11-28T17:15:12+00:00" + "time": "2023-12-05T15:10:30+00:00" } ], "packages-dev": [ @@ -310,30 +311,30 @@ }, { "name": "doctrine/instantiator", - "version": "1.4.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -360,7 +361,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -376,39 +377,44 @@ "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "ergebnis/composer-normalize", - "version": "2.28.3", + "version": "2.43.0", "source": { "type": "git", "url": "https://github.com/ergebnis/composer-normalize.git", - "reference": "ec75a2bf751f6fec165e9ea0262655b8ca397e5c" + "reference": "4b46330c84bb8f43fac79f5c5a05162fc7c80d75" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/composer-normalize/zipball/ec75a2bf751f6fec165e9ea0262655b8ca397e5c", - "reference": "ec75a2bf751f6fec165e9ea0262655b8ca397e5c", + "url": "https://api.github.com/repos/ergebnis/composer-normalize/zipball/4b46330c84bb8f43fac79f5c5a05162fc7c80d75", + "reference": "4b46330c84bb8f43fac79f5c5a05162fc7c80d75", "shasum": "" }, "require": { "composer-plugin-api": "^2.0.0", - "ergebnis/json-normalizer": "~2.1.0", - "ergebnis/json-printer": "^3.2.0", + "ergebnis/json": "^1.2.0", + "ergebnis/json-normalizer": "^4.5.0", + "ergebnis/json-printer": "^3.5.0", + "ext-json": "*", "justinrainbow/json-schema": "^5.2.12", "localheinz/diff": "^1.1.1", - "php": "^7.4 || ^8.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { - "composer/composer": "^2.3.9", - "ergebnis/license": "^1.2.0", - "ergebnis/php-cs-fixer-config": "^4.4.0", - "fakerphp/faker": "^1.19.0", - "phpunit/phpunit": "^9.5.21", - "psalm/plugin-phpunit": "~0.17.0", - "symfony/filesystem": "^5.4.9", - "vimeo/psalm": "^4.24.0" + "composer/composer": "^2.7.7", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.30.1", + "ergebnis/phpunit-slow-test-detector": "^2.14.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.19", + "psalm/plugin-phpunit": "~0.19.0", + "rector/rector": "^1.1.0", + "symfony/filesystem": "^5.4.40", + "vimeo/psalm": "^5.24.0" }, "type": "composer-plugin", "extra": { @@ -416,7 +422,8 @@ "composer-normalize": { "indent-size": 2, "indent-style": "space" - } + }, + "plugin-optional": true }, "autoload": { "psr-4": { @@ -430,7 +437,8 @@ "authors": [ { "name": "Andreas Möller", - "email": "am@localheinz.com" + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], "description": "Provides a composer plugin for normalizing composer.json.", @@ -443,40 +451,114 @@ ], "support": { "issues": "https://github.com/ergebnis/composer-normalize/issues", + "security": "https://github.com/ergebnis/composer-normalize/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/composer-normalize" }, - "time": "2022-07-05T16:09:10+00:00" + "time": "2024-06-16T13:22:18+00:00" + }, + { + "name": "ergebnis/json", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/ergebnis/json.git", + "reference": "a457f25a5ba7ea11fc94f84d53678c5211abfce0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ergebnis/json/zipball/a457f25a5ba7ea11fc94f84d53678c5211abfce0", + "reference": "a457f25a5ba7ea11fc94f84d53678c5211abfce0", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + }, + "require-dev": { + "ergebnis/data-provider": "^3.2.0", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.20.0", + "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.16", + "psalm/plugin-phpunit": "~0.18.4", + "rector/rector": "~0.19.2", + "vimeo/psalm": "^5.20.0" + }, + "type": "library", + "extra": { + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, + "autoload": { + "psr-4": { + "Ergebnis\\Json\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" + } + ], + "description": "Provides a Json value object for representing a valid JSON string.", + "homepage": "https://github.com/ergebnis/json", + "keywords": [ + "json" + ], + "support": { + "issues": "https://github.com/ergebnis/json/issues", + "security": "https://github.com/ergebnis/json/blob/main/.github/SECURITY.md", + "source": "https://github.com/ergebnis/json" + }, + "time": "2024-01-29T15:09:24+00:00" }, { "name": "ergebnis/json-normalizer", - "version": "2.1.0", + "version": "4.5.0", "source": { "type": "git", "url": "https://github.com/ergebnis/json-normalizer.git", - "reference": "2039eb11131a243b9204bf51219baa08935e6b1d" + "reference": "f0ee9e70739f121b27fac8b743e4a52b23de2152" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-normalizer/zipball/2039eb11131a243b9204bf51219baa08935e6b1d", - "reference": "2039eb11131a243b9204bf51219baa08935e6b1d", + "url": "https://api.github.com/repos/ergebnis/json-normalizer/zipball/f0ee9e70739f121b27fac8b743e4a52b23de2152", + "reference": "f0ee9e70739f121b27fac8b743e4a52b23de2152", "shasum": "" }, "require": { - "ergebnis/json-printer": "^3.2.0", - "ergebnis/json-schema-validator": "^2.0.0", + "ergebnis/json": "^1.2.0", + "ergebnis/json-pointer": "^3.4.0", + "ergebnis/json-printer": "^3.5.0", + "ergebnis/json-schema-validator": "^4.2.0", "ext-json": "*", - "justinrainbow/json-schema": "^5.2.11", - "php": "^7.4 || ^8.0" + "justinrainbow/json-schema": "^5.2.12", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { - "ergebnis/data-provider": "^1.0.0", - "ergebnis/license": "^1.2.0", - "ergebnis/php-cs-fixer-config": "^3.4.0", - "fakerphp/faker": "^1.17.0", - "infection/infection": "~0.25.5", - "phpunit/phpunit": "^9.5.11", - "psalm/plugin-phpunit": "~0.16.1", - "vimeo/psalm": "^4.17.0" + "composer/semver": "^3.4.0", + "ergebnis/data-provider": "^3.2.0", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.20.0", + "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.16", + "psalm/plugin-phpunit": "~0.18.4", + "rector/rector": "~0.19.4", + "vimeo/psalm": "^5.20.0" + }, + "suggest": { + "composer/semver": "If you want to use ComposerJsonNormalizer or VersionConstraintNormalizer" }, "type": "library", "autoload": { @@ -491,7 +573,8 @@ "authors": [ { "name": "Andreas Möller", - "email": "am@localheinz.com" + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], "description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.", @@ -502,43 +585,107 @@ ], "support": { "issues": "https://github.com/ergebnis/json-normalizer/issues", + "security": "https://github.com/ergebnis/json-normalizer/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-normalizer" }, - "funding": [ + "time": "2024-01-30T09:10:15+00:00" + }, + { + "name": "ergebnis/json-pointer", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://github.com/ergebnis/json-pointer.git", + "reference": "b654757d873050622c2166f55ab25d04685261c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ergebnis/json-pointer/zipball/b654757d873050622c2166f55ab25d04685261c5", + "reference": "b654757d873050622c2166f55ab25d04685261c5", + "shasum": "" + }, + "require": { + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + }, + "require-dev": { + "ergebnis/data-provider": "^3.2.0", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.20.0", + "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.16", + "psalm/plugin-phpunit": "~0.18.4", + "rector/rector": "~0.19.2", + "vimeo/psalm": "^5.20.0" + }, + "type": "library", + "extra": { + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, + "autoload": { + "psr-4": { + "Ergebnis\\Json\\Pointer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ { - "url": "https://github.com/localheinz", - "type": "github" + "name": "Andreas Möller", + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], - "time": "2022-01-04T11:19:55+00:00" + "description": "Provides an abstraction of a JSON pointer.", + "homepage": "https://github.com/ergebnis/json-pointer", + "keywords": [ + "RFC6901", + "json", + "pointer" + ], + "support": { + "issues": "https://github.com/ergebnis/json-pointer/issues", + "security": "https://github.com/ergebnis/json-pointer/blob/main/.github/SECURITY.md", + "source": "https://github.com/ergebnis/json-pointer" + }, + "time": "2024-01-29T16:37:15+00:00" }, { "name": "ergebnis/json-printer", - "version": "3.2.0", + "version": "3.5.0", "source": { "type": "git", "url": "https://github.com/ergebnis/json-printer.git", - "reference": "651cab2b7604a6b338d0d16749f5ea0851a68005" + "reference": "549e16fe6de34b8c3aee7b421be12caa552f3ced" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-printer/zipball/651cab2b7604a6b338d0d16749f5ea0851a68005", - "reference": "651cab2b7604a6b338d0d16749f5ea0851a68005", + "url": "https://api.github.com/repos/ergebnis/json-printer/zipball/549e16fe6de34b8c3aee7b421be12caa552f3ced", + "reference": "549e16fe6de34b8c3aee7b421be12caa552f3ced", "shasum": "" }, "require": { "ext-json": "*", "ext-mbstring": "*", - "php": "^7.4 || ^8.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { - "ergebnis/license": "^1.1.0", - "ergebnis/php-cs-fixer-config": "^3.4.0", - "fakerphp/faker": "^1.17.0", - "infection/infection": "~0.25.5", - "phpunit/phpunit": "^9.5.11", - "psalm/plugin-phpunit": "~0.16.1", - "vimeo/psalm": "^4.16.1" + "ergebnis/data-provider": "^3.2.0", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.20.0", + "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.16", + "psalm/plugin-phpunit": "~0.18.4", + "rector/rector": "~0.19.2", + "vimeo/psalm": "^5.20.0" }, "type": "library", "autoload": { @@ -553,7 +700,8 @@ "authors": [ { "name": "Andreas Möller", - "email": "am@localheinz.com" + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], "description": "Provides a JSON printer, allowing for flexible indentation.", @@ -565,45 +713,43 @@ ], "support": { "issues": "https://github.com/ergebnis/json-printer/issues", + "security": "https://github.com/ergebnis/json-printer/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-printer" }, - "funding": [ - { - "url": "https://github.com/localheinz", - "type": "github" - } - ], - "time": "2021-12-27T12:39:13+00:00" + "time": "2024-01-29T15:33:37+00:00" }, { "name": "ergebnis/json-schema-validator", - "version": "2.0.0", + "version": "4.2.0", "source": { "type": "git", "url": "https://github.com/ergebnis/json-schema-validator.git", - "reference": "dacd8a47c1cc2c426ec71e952da3609ebe901fac" + "reference": "10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-schema-validator/zipball/dacd8a47c1cc2c426ec71e952da3609ebe901fac", - "reference": "dacd8a47c1cc2c426ec71e952da3609ebe901fac", + "url": "https://api.github.com/repos/ergebnis/json-schema-validator/zipball/10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef", + "reference": "10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef", "shasum": "" }, "require": { + "ergebnis/json": "^1.2.0", + "ergebnis/json-pointer": "^3.4.0", "ext-json": "*", - "justinrainbow/json-schema": "^5.2.10", - "php": "^7.4 || ^8.0" + "justinrainbow/json-schema": "^5.2.12", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { - "ergebnis/composer-normalize": "^2.18.0", - "ergebnis/data-provider": "^1.0.0", - "ergebnis/license": "^1.1.0", - "ergebnis/php-cs-fixer-config": "~3.4.0", - "fakerphp/faker": "^1.17.0", - "infection/infection": "~0.25.3", - "phpunit/phpunit": "~9.5.10", - "psalm/plugin-phpunit": "~0.16.1", - "vimeo/psalm": "^4.15.0" + "ergebnis/data-provider": "^3.2.0", + "ergebnis/license": "^2.4.0", + "ergebnis/php-cs-fixer-config": "^6.20.0", + "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "fakerphp/faker": "^1.23.1", + "infection/infection": "~0.26.6", + "phpunit/phpunit": "^9.6.16", + "psalm/plugin-phpunit": "~0.18.4", + "rector/rector": "~0.19.2", + "vimeo/psalm": "^5.20.0" }, "type": "library", "extra": { @@ -624,7 +770,8 @@ "authors": [ { "name": "Andreas Möller", - "email": "am@localheinz.com" + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" } ], "description": "Provides a JSON schema validator, building on top of justinrainbow/json-schema.", @@ -636,15 +783,10 @@ ], "support": { "issues": "https://github.com/ergebnis/json-schema-validator/issues", + "security": "https://github.com/ergebnis/json-schema-validator/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-schema-validator" }, - "funding": [ - { - "url": "https://github.com/localheinz", - "type": "github" - } - ], - "time": "2021-12-13T16:54:56+00:00" + "time": "2024-01-29T16:50:15+00:00" }, { "name": "fig-r/psr2r-sniffer", @@ -736,20 +878,20 @@ }, { "name": "justinrainbow/json-schema", - "version": "5.2.12", + "version": "5.3.0", "source": { "type": "git", - "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60" + "url": "https://github.com/jsonrainbow/json-schema.git", + "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", - "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "require-dev": { "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", @@ -760,11 +902,6 @@ "bin/validate-json" ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0.x-dev" - } - }, "autoload": { "psr-4": { "JsonSchema\\": "src/JsonSchema/" @@ -799,10 +936,10 @@ "schema" ], "support": { - "issues": "https://github.com/justinrainbow/json-schema/issues", - "source": "https://github.com/justinrainbow/json-schema/tree/5.2.12" + "issues": "https://github.com/jsonrainbow/json-schema/issues", + "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.0" }, - "time": "2022-04-13T08:02:27+00:00" + "time": "2024-07-06T21:00:26+00:00" }, { "name": "localheinz/diff", @@ -916,16 +1053,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { @@ -933,11 +1070,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -963,7 +1101,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" }, "funding": [ { @@ -971,29 +1109,31 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { "name": "nikic/php-parser", - "version": "v4.15.2", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", - "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.0" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -1001,7 +1141,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -1025,26 +1165,27 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" }, - "time": "2022-11-12T15:38:23+00:00" + "time": "2024-07-01T20:03:41+00:00" }, { "name": "phar-io/manifest", - "version": "2.0.3", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + "reference": "54750ef60c58e43759730615a392c31c80e23176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-phar": "*", "ext-xmlwriter": "*", "phar-io/version": "^3.0.1", @@ -1085,9 +1226,15 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.3" + "source": "https://github.com/phar-io/manifest/tree/2.0.4" }, - "time": "2021-07-20T11:28:43+00:00" + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" }, { "name": "phar-io/version", @@ -1142,31 +1289,31 @@ }, { "name": "php-stubs/wordpress-stubs", - "version": "v5.9.5", + "version": "v5.9.9", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "13ecf204a7e6d215a7c0d23e2aa27940fe617717" + "reference": "06c51c4863659ea9e9f4c2a23293728a677cb059" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/13ecf204a7e6d215a7c0d23e2aa27940fe617717", - "reference": "13ecf204a7e6d215a7c0d23e2aa27940fe617717", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/06c51c4863659ea9e9f4c2a23293728a677cb059", + "reference": "06c51c4863659ea9e9f4c2a23293728a677cb059", "shasum": "" }, - "replace": { - "giacocorsiglia/wordpress-stubs": "*" - }, "require-dev": { - "nikic/php-parser": "< 4.12.0", - "php": "~7.3 || ~8.0", - "php-stubs/generator": "^0.8.1", - "phpdocumentor/reflection-docblock": "^5.3", - "phpstan/phpstan": "^1.2" + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "nikic/php-parser": "^4.13", + "php": "^7.4 || ~8.0.0", + "php-stubs/generator": "^0.8.3", + "phpdocumentor/reflection-docblock": "5.3", + "phpstan/phpstan": "^1.10.49", + "phpunit/phpunit": "^9.5", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.11" }, "suggest": { "paragonie/sodium_compat": "Pure PHP implementation of libsodium", - "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "symfony/polyfill-php80": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" }, "type": "library", @@ -1183,9 +1330,9 @@ ], "support": { "issues": "https://github.com/php-stubs/wordpress-stubs/issues", - "source": "https://github.com/php-stubs/wordpress-stubs/tree/v5.9.5" + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v5.9.9" }, - "time": "2022-11-09T05:32:14+00:00" + "time": "2024-04-14T17:16:00+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -1251,28 +1398,28 @@ }, { "name": "phpcompatibility/phpcompatibility-paragonie", - "version": "1.3.2", + "version": "1.3.3", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", - "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26" + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", - "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac", + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac", "shasum": "" }, "require": { "phpcompatibility/php-compatibility": "^9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", "paragonie/random_compat": "dev-master", "paragonie/sodium_compat": "dev-master" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -1302,9 +1449,24 @@ ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" }, - "time": "2022-10-25T01:46:02+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-04-24T21:30:46+00:00" }, { "name": "phpcompatibility/phpcompatibility-wp", @@ -1362,30 +1524,30 @@ }, { "name": "phpoption/phpoption", - "version": "1.9.0", + "version": "1.9.3", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab" + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", - "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8", - "phpunit/phpunit": "^8.5.28 || ^9.5.21" + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" }, "type": "library", "extra": { "bamarni-bin": { "bin-links": true, - "forward-command": true + "forward-command": false }, "branch-alias": { "dev-master": "1.9-dev" @@ -1421,7 +1583,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.0" + "source": "https://github.com/schmittjoh/php-option/tree/1.9.3" }, "funding": [ { @@ -1433,7 +1595,7 @@ "type": "tidelift" } ], - "time": "2022-07-30T15:51:26+00:00" + "time": "2024-07-20T21:41:07+00:00" }, { "name": "phpstan/phpstan", @@ -1497,23 +1659,23 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.19", + "version": "9.2.31", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559" + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/48c34b5d8d983006bd2adc2d0de92963b9155965", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -1528,8 +1690,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -1562,7 +1724,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.31" }, "funding": [ { @@ -1570,7 +1733,7 @@ "type": "github" } ], - "time": "2022-11-18T07:47:47+00:00" + "time": "2024-03-02T06:37:42+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1815,50 +1978,50 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.26", + "version": "9.6.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2" + "reference": "49d7820565836236411f5dc002d16dd689cde42f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/851867efcbb6a1b992ec515c71cdcf20d895e9d2", - "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/49d7820565836236411f5dc002d16dd689cde42f", + "reference": "49d7820565836236411f5dc002d16dd689cde42f", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", + "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-code-coverage": "^9.2.31", + "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", "sebastian/version": "^3.0.2" }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -1866,7 +2029,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -1897,7 +2060,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.26" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.20" }, "funding": [ { @@ -1913,80 +2077,20 @@ "type": "tidelift" } ], - "time": "2022-10-28T06:00:21+00:00" - }, - { - "name": "rmccue/requests", - "version": "v1.8.1", - "source": { - "type": "git", - "url": "https://github.com/WordPress/Requests.git", - "reference": "82e6936366eac3af4d836c18b9d8c31028fe4cd5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WordPress/Requests/zipball/82e6936366eac3af4d836c18b9d8c31028fe4cd5", - "reference": "82e6936366eac3af4d836c18b9d8c31028fe4cd5", - "shasum": "" - }, - "require": { - "php": ">=5.2" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "php-parallel-lint/php-console-highlighter": "^0.5.0", - "php-parallel-lint/php-parallel-lint": "^1.3", - "phpcompatibility/php-compatibility": "^9.0", - "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5", - "requests/test-server": "dev-master", - "squizlabs/php_codesniffer": "^3.5", - "wp-coding-standards/wpcs": "^2.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Requests": "library/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "ISC" - ], - "authors": [ - { - "name": "Ryan McCue", - "homepage": "http://ryanmccue.info" - } - ], - "description": "A HTTP library written in PHP, for human beings.", - "homepage": "http://github.com/WordPress/Requests", - "keywords": [ - "curl", - "fsockopen", - "http", - "idna", - "ipv6", - "iri", - "sockets" - ], - "support": { - "issues": "https://github.com/WordPress/Requests/issues", - "source": "https://github.com/WordPress/Requests/tree/v1.8.1" - }, - "time": "2021-06-04T09:56:25+00:00" + "time": "2024-07-10T11:45:39+00:00" }, { "name": "roots/wordpress", - "version": "6.4.3", + "version": "6.6.1", "source": { "type": "git", "url": "https://github.com/roots/wordpress.git", - "reference": "41ff6e23ccbc3a1691406d69fe8c211a225514e2" + "reference": "1bdabdb9171ac5323edbf4792ce353d475467d27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/roots/wordpress/zipball/41ff6e23ccbc3a1691406d69fe8c211a225514e2", - "reference": "41ff6e23ccbc3a1691406d69fe8c211a225514e2", + "url": "https://api.github.com/repos/roots/wordpress/zipball/1bdabdb9171ac5323edbf4792ce353d475467d27", + "reference": "1bdabdb9171ac5323edbf4792ce353d475467d27", "shasum": "" }, "require": { @@ -2008,7 +2112,7 @@ ], "support": { "issues": "https://github.com/roots/wordpress/issues", - "source": "https://github.com/roots/wordpress/tree/6.4.3" + "source": "https://github.com/roots/wordpress/tree/6.6.1" }, "funding": [ { @@ -2016,7 +2120,7 @@ "type": "github" } ], - "time": "2022-06-01T16:54:37+00:00" + "time": "2024-07-16T12:03:00+00:00" }, { "name": "roots/wordpress-core-installer", @@ -2091,22 +2195,22 @@ }, { "name": "roots/wordpress-no-content", - "version": "6.4.3", + "version": "6.6.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress.git", - "reference": "6.4.3" + "reference": "6.6.1" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/release/wordpress-6.4.3-no-content.zip", - "shasum": "4138c6337bf524159b406d5b27916deebb0f78df" + "url": "https://downloads.wordpress.org/release/wordpress-6.6.1-no-content.zip", + "shasum": "954aa560a66112cd999aa9d9519da5f964e6692a" }, "require": { "php": ">= 7.0.0" }, "provide": { - "wordpress/core-implementation": "6.4.3" + "wordpress/core-implementation": "6.6.1" }, "suggest": { "ext-curl": "Performs remote request operations.", @@ -2157,20 +2261,20 @@ "type": "other" } ], - "time": "2024-01-30T19:32:01+00:00" + "time": "2024-07-23T15:25:13+00:00" }, { "name": "sebastian/cli-parser", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", "shasum": "" }, "require": { @@ -2205,7 +2309,7 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" }, "funding": [ { @@ -2213,7 +2317,7 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2024-03-02T06:27:43+00:00" }, { "name": "sebastian/code-unit", @@ -2402,20 +2506,20 @@ }, { "name": "sebastian/complexity", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3" }, "require-dev": { @@ -2447,7 +2551,7 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" }, "funding": [ { @@ -2455,20 +2559,20 @@ "type": "github" } ], - "time": "2020-10-26T15:52:27+00:00" + "time": "2023-12-22T06:19:30+00:00" }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", "shasum": "" }, "require": { @@ -2513,7 +2617,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" }, "funding": [ { @@ -2521,20 +2625,20 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2024-03-02T06:30:58+00:00" }, { "name": "sebastian/environment", - "version": "5.1.4", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { @@ -2576,7 +2680,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -2584,20 +2688,20 @@ "type": "github" } ], - "time": "2022-04-03T09:37:03+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", "shasum": "" }, "require": { @@ -2653,7 +2757,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" }, "funding": [ { @@ -2661,20 +2765,20 @@ "type": "github" } ], - "time": "2022-09-14T06:03:37+00:00" + "time": "2024-03-02T06:33:00+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "5.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", "shasum": "" }, "require": { @@ -2717,7 +2821,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" }, "funding": [ { @@ -2725,24 +2829,24 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2024-03-02T06:35:11+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.3", + "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3" }, "require-dev": { @@ -2774,7 +2878,7 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" }, "funding": [ { @@ -2782,7 +2886,7 @@ "type": "github" } ], - "time": "2020-11-28T06:42:11+00:00" + "time": "2023-12-22T06:20:34+00:00" }, { "name": "sebastian/object-enumerator", @@ -2898,16 +3002,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { @@ -2946,10 +3050,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" }, "funding": [ { @@ -2957,20 +3061,20 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2023-02-03T06:07:39+00:00" }, { "name": "sebastian/resource-operations", - "version": "3.0.3", + "version": "3.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", "shasum": "" }, "require": { @@ -2982,7 +3086,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -3003,8 +3107,7 @@ "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" }, "funding": [ { @@ -3012,20 +3115,20 @@ "type": "github" } ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2024-03-14T16:00:52+00:00" }, { "name": "sebastian/type", - "version": "3.2.0", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", - "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", "shasum": "" }, "require": { @@ -3060,7 +3163,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" }, "funding": [ { @@ -3068,7 +3171,7 @@ "type": "github" } ], - "time": "2022-09-12T14:47:03+00:00" + "time": "2023-02-03T06:13:03+00:00" }, { "name": "sebastian/version", @@ -3193,91 +3296,25 @@ ], "time": "2020-10-23T02:01:07+00:00" }, - { - "name": "symfony/deprecation-contracts", - "version": "v2.5.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-01-02T09:53:40+00:00" - }, { "name": "symfony/finder", - "version": "v5.4.11", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c" + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c", - "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c", + "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -3305,7 +3342,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.11" + "source": "https://github.com/symfony/finder/tree/v7.1.1" }, "funding": [ { @@ -3321,20 +3358,20 @@ "type": "tidelift" } ], - "time": "2022-07-29T07:37:50+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.27.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -3348,9 +3385,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3387,7 +3421,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" }, "funding": [ { @@ -3403,20 +3437,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.27.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", "shasum": "" }, "require": { @@ -3424,9 +3458,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3466,7 +3497,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" }, "funding": [ { @@ -3482,90 +3513,7 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.27.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "szepeviktor/phpstan-wordpress", @@ -3633,16 +3581,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "shasum": "" }, "require": { @@ -3671,7 +3619,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" }, "funding": [ { @@ -3679,7 +3627,7 @@ "type": "github" } ], - "time": "2021-07-28T10:34:58+00:00" + "time": "2024-03-03T12:36:25+00:00" }, { "name": "vlucas/phpdotenv", @@ -3760,16 +3708,16 @@ }, { "name": "wp-cli/db-command", - "version": "v2.0.24", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/wp-cli/db-command.git", - "reference": "196f4d3d171b79e19650182c645f854643439c9e" + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/db-command/zipball/196f4d3d171b79e19650182c645f854643439c9e", - "reference": "196f4d3d171b79e19650182c645f854643439c9e", + "url": "https://api.github.com/repos/wp-cli/db-command/zipball/60ee5535e4b39e2d930894b7f435a2e488171c27", + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27", "shasum": "" }, "require": { @@ -3777,12 +3725,12 @@ }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", - "wp-cli/wp-cli-tests": "^3.1" + "wp-cli/wp-cli-tests": "^4" }, "type": "wp-cli-package", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-main": "2.x-dev" }, "bundled": true, "commands": [ @@ -3809,9 +3757,9 @@ "files": [ "db-command.php" ], - "psr-4": { - "": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3828,9 +3776,9 @@ "homepage": "https://github.com/wp-cli/db-command", "support": { "issues": "https://github.com/wp-cli/db-command/issues", - "source": "https://github.com/wp-cli/db-command/tree/v2.0.24" + "source": "https://github.com/wp-cli/db-command/tree/v2.1.1" }, - "time": "2022-10-28T17:58:13+00:00" + "time": "2024-07-10T17:31:56+00:00" }, { "name": "wp-cli/mustangostang-spyc", @@ -3885,22 +3833,31 @@ }, { "name": "wp-cli/php-cli-tools", - "version": "v0.11.16", + "version": "v0.11.22", "source": { "type": "git", "url": "https://github.com/wp-cli/php-cli-tools.git", - "reference": "c32e51a5c9993ad40591bc426b21f5422a5ed293" + "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/c32e51a5c9993ad40591bc426b21f5422a5ed293", - "reference": "c32e51a5c9993ad40591bc426b21f5422a5ed293", + "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/a6bb94664ca36d0962f9c2ff25591c315a550c51", + "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51", "shasum": "" }, "require": { "php": ">= 5.3.0" }, + "require-dev": { + "roave/security-advisories": "dev-latest", + "wp-cli/wp-cli-tests": "^4" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.11.x-dev" + } + }, "autoload": { "files": [ "lib/cli/cli.php" @@ -3933,29 +3890,28 @@ ], "support": { "issues": "https://github.com/wp-cli/php-cli-tools/issues", - "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.16" + "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.22" }, - "time": "2022-11-03T15:19:26+00:00" + "time": "2023-12-03T19:25:05+00:00" }, { "name": "wp-cli/wp-cli", - "version": "v2.7.1", + "version": "v2.10.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76" + "reference": "a339dca576df73c31af4b4d8054efc2dab9a0685" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76", - "reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/a339dca576df73c31af4b4d8054efc2dab9a0685", + "reference": "a339dca576df73c31af4b4d8054efc2dab9a0685", "shasum": "" }, "require": { "ext-curl": "*", "mustache/mustache": "^2.14.1", "php": "^5.6 || ^7.0 || ^8.0", - "rmccue/requests": "^1.8", "symfony/finder": ">2.7", "wp-cli/mustangostang-spyc": "^0.6.3", "wp-cli/php-cli-tools": "~0.11.2" @@ -3966,7 +3922,7 @@ "wp-cli/entity-command": "^1.2 || ^2", "wp-cli/extension-command": "^1.1 || ^2", "wp-cli/package-command": "^1 || ^2", - "wp-cli/wp-cli-tests": "^3.1.6" + "wp-cli/wp-cli-tests": "^4.0.1" }, "suggest": { "ext-readline": "Include for a better --prompt implementation", @@ -3979,7 +3935,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8.x-dev" + "dev-main": "2.10.x-dev" } }, "autoload": { @@ -4006,7 +3962,7 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2022-10-17T23:10:42+00:00" + "time": "2024-02-08T16:52:43+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -4060,16 +4016,16 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.4.2", + "version": "6.6.1", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", - "reference": "aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099" + "reference": "7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099", - "reference": "aa3c8f5d1b7efc295fd2b37c7264d2356a8c1099", + "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3", + "reference": "7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3", "shasum": "" }, "type": "library", @@ -4104,20 +4060,20 @@ "issues": "https://github.com/wp-phpunit/issues", "source": "https://github.com/wp-phpunit/wp-phpunit" }, - "time": "2023-12-07T00:50:08+00:00" + "time": "2024-07-17T01:13:44+00:00" }, { "name": "yoast/phpunit-polyfills", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212" + "reference": "a0f7d708794a738f328d7b6c94380fd1d6c40446" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/224e4a1329c03d8bad520e3fc4ec980034a4b212", - "reference": "224e4a1329c03d8bad520e3fc4ec980034a4b212", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/a0f7d708794a738f328d7b6c94380fd1d6c40446", + "reference": "a0f7d708794a738f328d7b6c94380fd1d6c40446", "shasum": "" }, "require": { @@ -4125,7 +4081,9 @@ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "require-dev": { - "yoast/yoastcs": "^2.3.0" + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "yoast/yoastcs": "^3.1.0" }, "type": "library", "extra": { @@ -4162,9 +4120,10 @@ ], "support": { "issues": "https://github.com/Yoast/PHPUnit-Polyfills/issues", + "security": "https://github.com/Yoast/PHPUnit-Polyfills/security/policy", "source": "https://github.com/Yoast/PHPUnit-Polyfills" }, - "time": "2023-08-19T14:25:08+00:00" + "time": "2024-04-05T16:01:51+00:00" } ], "aliases": [], From 12dfb50b10759865c913b45cc54192da561f9931 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 25 Jul 2024 15:04:39 +0100 Subject: [PATCH 26/28] Force target platform to lowest supported PHP version --- composer.json | 3 + composer.lock | 197 ++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 176 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 0ab3601..32ae219 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,9 @@ "ergebnis/composer-normalize": true, "roots/wordpress-core-installer": true }, + "platform": { + "php": "7.4" + }, "preferred-install": "dist", "sort-packages": true }, diff --git a/composer.lock b/composer.lock index 7d3a273..d29882d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b70139d6f08d0088c9df7b3ae6751571", + "content-hash": "62cbbe60f560435cdcd03d65b5448679", "packages": [ { "name": "composer/installers", @@ -311,30 +311,30 @@ }, { "name": "doctrine/instantiator", - "version": "2.0.0", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^11", + "doctrine/coding-standard": "^9 || ^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", "autoload": { @@ -361,7 +361,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" }, "funding": [ { @@ -377,7 +377,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:23:10+00:00" + "time": "2022-12-30T00:15:36+00:00" }, { "name": "ergebnis/composer-normalize", @@ -3296,25 +3296,91 @@ ], "time": "2020-10-23T02:01:07+00:00" }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-24T14:02:46+00:00" + }, { "name": "symfony/finder", - "version": "v7.1.1", + "version": "v5.4.40", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" + "reference": "f51cff4687547641c7d8180d74932ab40b2205ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", - "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "url": "https://api.github.com/repos/symfony/finder/zipball/f51cff4687547641c7d8180d74932ab40b2205ce", + "reference": "f51cff4687547641c7d8180d74932ab40b2205ce", "shasum": "" }, "require": { - "php": ">=8.2" - }, - "require-dev": { - "symfony/filesystem": "^6.4|^7.0" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -3342,7 +3408,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.1" + "source": "https://github.com/symfony/finder/tree/v5.4.40" }, "funding": [ { @@ -3358,7 +3424,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2024-05-31T14:33:22+00:00" }, { "name": "symfony/polyfill-ctype", @@ -3515,6 +3581,86 @@ ], "time": "2024-05-31T15:07:36+00:00" }, + { + "name": "symfony/polyfill-php80", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, { "name": "szepeviktor/phpstan-wordpress", "version": "v0.7.1", @@ -4135,5 +4281,8 @@ "php": ">=7.2" }, "platform-dev": [], + "platform-overrides": { + "php": "7.4" + }, "plugin-api-version": "2.6.0" } From 3607ba7fb04b1081629c2cd653df3c03e1b25c2e Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 25 Jul 2024 15:25:18 +0100 Subject: [PATCH 27/28] Fix PHPStan errors --- .github/workflows/php-standards.yml | 4 ++-- inc/cli/namespace.php | 1 - inc/namespace.php | 10 +++++----- phpstan.neon.dist | 3 +++ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/php-standards.yml b/.github/workflows/php-standards.yml index f9f9f9b..fbb7380 100644 --- a/.github/workflows/php-standards.yml +++ b/.github/workflows/php-standards.yml @@ -38,7 +38,7 @@ jobs: uses: actions/cache@v4 with: path: ${{ steps.composer-cache-dir.outputs.DIR }} - key: ${{ runner.os }}-composer-7.2-${{ hashFiles('composer.lock') }} + key: ${{ runner.os }}-composer-7.4-${{ hashFiles('composer.lock') }} - name: Install PHP Dependencies run: | @@ -48,7 +48,7 @@ jobs: uses: actions/cache@v4 with: path: tests/cache - key: ${{ runner.os }}-phpcs-7.2-${{ hashFiles('plugin.php') }} + key: ${{ runner.os }}-phpcs-7.4-${{ hashFiles('plugin.php') }} - name: Run the tests run: | diff --git a/inc/cli/namespace.php b/inc/cli/namespace.php index 35d70eb..5d5697e 100644 --- a/inc/cli/namespace.php +++ b/inc/cli/namespace.php @@ -17,6 +17,5 @@ * @return void */ function bootstrap() : void { - // @phpstan-ignore-next-line WP_CLI::add_command( 'authorship migrate', __NAMESPACE__ . '\\Migrate_Command' ); } diff --git a/inc/namespace.php b/inc/namespace.php index 6b5524d..f327cb5 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -760,11 +760,11 @@ function filter_comment_notification_recipients( array $emails, int $comment_id * Bit of a hack, but filter filter_quickedit_authors and include only author with ID 0. * Also hide if only one author just in case someone someone has created author with 0. * - * @param array $options Options. - * @return array Options. + * @param array<string, mixed> $options Options. + * @return array<string, mixed> Filtered options. */ function hide_quickedit_authors( array $options ) : array { - $users_opt['hide_if_only_one_author'] = true; - $users_opt['include'] = [ 0 ]; - return $users_opt; + $options['hide_if_only_one_author'] = true; + $options['include'] = [ 0 ]; + return $options; } diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 360bc97..816da47 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -26,3 +26,6 @@ parameters: ignoreErrors: # Uses func_get_args() - '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#' + # Cant declare types always because extended + # core parent class methods don't + checkGenericClassInNonGenericObjectType: false From 153c29c2b4050855bea42cd2f5a5a82d69d3abf3 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <robert@o-rourke.org> Date: Thu, 25 Jul 2024 15:28:07 +0100 Subject: [PATCH 28/28] Update PHP test matrix for nightly tests --- .github/workflows/test-nightly.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index faaa778..3899d50 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -9,10 +9,12 @@ jobs: build: strategy: matrix: - php: ['7.4'] - include: - - php: '8.0' - experimental: true + php: + - '7.4' + - '8.0' + - '8.1' + - '8.2' + - '8.3' fail-fast: false name: WP nightly / PHP ${{ matrix.php }} runs-on: ubuntu-20.04