Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/phpstan/baselines/assign.propertyType.neon
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ parameters:
-
message: '#^Property WP_Query\:\:\$posts \(array\<int\|WP_Post\>\|null\) does not accept list\<stdClass\>\|null\.$#'
identifier: assign.propertyType
count: 1
count: 2
path: ../../../src/wp-includes/class-wp-query.php
-
message: '#^Property WP_Query\:\:\$posts \(array\<int\|WP_Post\>\|null\) does not accept list\<string\|null\>\.$#'
identifier: assign.propertyType
count: 1
count: 2
path: ../../../src/wp-includes/class-wp-query.php
-
message: '#^Property WP_Rewrite\:\:\$rules \(array\<string\>\) does not accept string\.$#'
Expand Down
2 changes: 1 addition & 1 deletion tests/phpstan/baselines/offsetAccess.notFound.neon
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
parameters:
ignoreErrors:
-
message: '#^Offset float does not exist on list\<float\>\.$#'
message: '#^Offset float\<0\.0, max\> does not exist on list\<float\>\.$#'
identifier: offsetAccess.notFound
count: 1
path: ../../../src/wp-admin/includes/class-wp-site-health.php
Expand Down
15 changes: 0 additions & 15 deletions tests/phpstan/baselines/variable.undefined.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading