diff --git a/composer.json b/composer.json index fe6d3fa924bc9..dd7f57d5b6313 100644 --- a/composer.json +++ b/composer.json @@ -52,8 +52,8 @@ "squizlabs/php_codesniffer": "3.13.5", "wp-coding-standards/wpcs": "~3.4.1", "phpcompatibility/phpcompatibility-wp": "~2.1.3", - "phpstan/phpstan": "2.3.5", - "phpstan/phpstan-phpunit": "2.1.1", + "phpstan/phpstan": "2.3.6", + "phpstan/phpstan-phpunit": "2.1.2", "phpstan/phpstan-strict-rules": "2.1.1", "yoast/phpunit-polyfills": "^1.1.0" }, diff --git a/tests/phpstan/baselines/assign.propertyType.neon b/tests/phpstan/baselines/assign.propertyType.neon index a4ea6afb84d31..80b4b8b9b43c1 100644 --- a/tests/phpstan/baselines/assign.propertyType.neon +++ b/tests/phpstan/baselines/assign.propertyType.neon @@ -36,12 +36,12 @@ parameters: - message: '#^Property WP_Query\:\:\$posts \(array\\|null\) does not accept list\\|null\.$#' identifier: assign.propertyType - count: 1 + count: 2 path: ../../../src/wp-includes/class-wp-query.php - message: '#^Property WP_Query\:\:\$posts \(array\\|null\) does not accept list\\.$#' identifier: assign.propertyType - count: 1 + count: 2 path: ../../../src/wp-includes/class-wp-query.php - message: '#^Property WP_Rewrite\:\:\$rules \(array\\) does not accept string\.$#' diff --git a/tests/phpstan/baselines/offsetAccess.notFound.neon b/tests/phpstan/baselines/offsetAccess.notFound.neon index 4470319b88805..a27d5cc14f437 100644 --- a/tests/phpstan/baselines/offsetAccess.notFound.neon +++ b/tests/phpstan/baselines/offsetAccess.notFound.neon @@ -19,7 +19,7 @@ parameters: ignoreErrors: - - message: '#^Offset float does not exist on list\\.$#' + message: '#^Offset float\<0\.0, max\> does not exist on list\\.$#' identifier: offsetAccess.notFound count: 1 path: ../../../src/wp-admin/includes/class-wp-site-health.php diff --git a/tests/phpstan/baselines/variable.undefined.neon b/tests/phpstan/baselines/variable.undefined.neon index 1192b132f2626..94ac3791e4bed 100644 --- a/tests/phpstan/baselines/variable.undefined.neon +++ b/tests/phpstan/baselines/variable.undefined.neon @@ -18,11 +18,6 @@ parameters: ignoreErrors: - - - message: '#^Variable \$pagenow might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: ../../../src/wp-admin/admin.php - message: '#^Variable \$wp_db_version might not be defined\.$#' identifier: variable.undefined @@ -693,11 +688,6 @@ parameters: identifier: variable.undefined count: 3 path: ../../../src/wp-includes/ms-files.php - - - message: '#^Variable \$current_blog might not be defined\.$#' - identifier: variable.undefined - count: 7 - path: ../../../src/wp-includes/ms-settings.php - message: '#^Variable \$table_prefix might not be defined\.$#' identifier: variable.undefined @@ -708,11 +698,6 @@ parameters: identifier: variable.undefined count: 3 path: ../../../src/wp-includes/ms-settings.php - - - message: '#^Variable \$wp_template_path might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../src/wp-includes/template.php - message: '#^Variable \$error might not be defined\.$#' identifier: variable.undefined