From b131c02f2297d8e7b05529a070e8d6a6d7ec72f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 09:42:45 +0000 Subject: [PATCH 1/2] build(deps-dev): bump axepress/wp-graphql-stubs from 1.28.1 to 2.19.0 Bumps [axepress/wp-graphql-stubs](https://github.com/AxeWP/wp-graphql-stubs) from 1.28.1 to 2.19.0. - [Commits](https://github.com/AxeWP/wp-graphql-stubs/compare/v1.28.1...v2.19.0) --- updated-dependencies: - dependency-name: axepress/wp-graphql-stubs dependency-version: 2.6.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- composer.lock | 49 +++++++++++++++++++++++++++---------------------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/composer.json b/composer.json index 04b58df3..49fa3ac6 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "phpstan/phpstan": "^1.10", "phpstan/extension-installer": "^1.3", "szepeviktor/phpstan-wordpress": "^1.3", - "axepress/wp-graphql-stubs": "^1.14", + "axepress/wp-graphql-stubs": "^2.19", "axepress/wp-graphql-cs": "^2.0.0-beta", "roave/security-advisories": "dev-latest" }, diff --git a/composer.lock b/composer.lock index 98fdb847..bc2f690a 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": "6383b2c7a042022c67d04bfa6c487524", + "content-hash": "714311a5de9b0d4621fbc34f7783d0ad", "packages": [ { "name": "imangazaliev/didom", @@ -220,27 +220,28 @@ }, { "name": "axepress/wp-graphql-stubs", - "version": "v1.28.1", + "version": "v2.19.0", "source": { "type": "git", "url": "https://github.com/AxeWP/wp-graphql-stubs.git", - "reference": "4db0bc313af91f0f5ddbc49c90b6b381634d5970" + "reference": "cbd4bd3f56449a6f2159d51f2c7763c1482bed3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AxeWP/wp-graphql-stubs/zipball/4db0bc313af91f0f5ddbc49c90b6b381634d5970", - "reference": "4db0bc313af91f0f5ddbc49c90b6b381634d5970", + "url": "https://api.github.com/repos/AxeWP/wp-graphql-stubs/zipball/cbd4bd3f56449a6f2159d51f2c7763c1482bed3b", + "reference": "cbd4bd3f56449a6f2159d51f2c7763c1482bed3b", "shasum": "" }, "require": { - "php-stubs/wordpress-stubs": "^5.4 || ^6.0" + "php-stubs/wordpress-stubs": ">=5.4" }, "require-dev": { - "php": ">=7.3", - "php-stubs/generator": "^0.8.0", - "phpstan/phpstan": "^1.8" + "php": ">=7.4", + "php-stubs/generator": "^0.9.0", + "phpstan/phpstan": "^2.1.5" }, "suggest": { + "axepress/wp-graphql-cs": "Coding standards for WPGraphQL projects", "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" }, "type": "library", @@ -260,7 +261,7 @@ ], "support": { "issues": "https://github.com/AxeWP/wp-graphql-stubs/issues", - "source": "https://github.com/AxeWP/wp-graphql-stubs/tree/v1.28.1" + "source": "https://github.com/AxeWP/wp-graphql-stubs/tree/v2.19.0" }, "funding": [ { @@ -268,7 +269,7 @@ "type": "github" } ], - "time": "2024-08-22T12:39:39+00:00" + "time": "2026-08-04T03:27:55+00:00" }, { "name": "brain/monkey", @@ -939,27 +940,31 @@ }, { "name": "php-stubs/wordpress-stubs", - "version": "v6.6.0", + "version": "v6.9.4", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2" + "reference": "90a9412826b9944f93b10bf41d795b5fe68abcd5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/86e8753e89d59849276dcdd91b9a7dd78bb4abe2", - "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/90a9412826b9944f93b10bf41d795b5fe68abcd5", + "reference": "90a9412826b9944f93b10bf41d795b5fe68abcd5", "shasum": "" }, + "conflict": { + "phpdocumentor/reflection-docblock": "5.6.1" + }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "nikic/php-parser": "^4.13", + "nikic/php-parser": "^5.5", "php": "^7.4 || ^8.0", - "php-stubs/generator": "^0.8.3", - "phpdocumentor/reflection-docblock": "^5.4.1", - "phpstan/phpstan": "^1.10.49", + "php-stubs/generator": "^0.8.6", + "phpdocumentor/reflection-docblock": "^6.0", + "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^9.5", - "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", + "symfony/polyfill-php80": "*", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1", "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" }, "suggest": { @@ -981,9 +986,9 @@ ], "support": { "issues": "https://github.com/php-stubs/wordpress-stubs/issues", - "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.0" + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.9.4" }, - "time": "2024-07-17T08:50:38+00:00" + "time": "2026-05-01T20:36:01+00:00" }, { "name": "phpcompatibility/php-compatibility", From 81ba5a8c09b9b3082f904341e201ab5ebe04ba72 Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Tue, 18 Aug 2026 11:13:07 +0100 Subject: [PATCH 2/2] fix: Fixed formatting issues for PHPstan. --- includes/Utilities/DOMHelpers.php | 1 - includes/Utilities/WPHelpers.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Utilities/DOMHelpers.php b/includes/Utilities/DOMHelpers.php index 7f5cec79..fb6e0829 100644 --- a/includes/Utilities/DOMHelpers.php +++ b/includes/Utilities/DOMHelpers.php @@ -220,7 +220,6 @@ public static function find_nodes( string $html, ?string $selector = null ) { return $elem; } - /** * Deprecated methods. */ diff --git a/includes/Utilities/WPHelpers.php b/includes/Utilities/WPHelpers.php index 8d63d5a5..73fc3f4a 100644 --- a/includes/Utilities/WPHelpers.php +++ b/includes/Utilities/WPHelpers.php @@ -69,7 +69,7 @@ public static function get_block_editor_context( string $post_type, $id = -99 ): $post->ID = $post_id; $post->post_author = 1; $post->post_date = current_time( 'mysql' ); - $post->post_date_gmt = current_time( 'mysql', 1 ); + $post->post_date_gmt = current_time( 'mysql', true ); $post->post_title = ''; $post->post_content = ''; $post->post_status = '';