mirror of
https://hk.gh-proxy.com/https://github.com/mcp-wp/mcp-server.git
synced 2026-03-03 13:46:16 +08:00
46 lines
1.6 KiB
Text
46 lines
1.6 KiB
Text
parameters:
|
|
level: 9
|
|
paths:
|
|
- media-experiments.php
|
|
- inc/
|
|
scanFiles:
|
|
- vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
|
|
- tests/phpstan/filtered-functions.stub
|
|
- tests/phpstan/performance-lab.stub
|
|
# These are needed due config.platform.php being 7.4 in composer.json and wordpress-stubs not including polyfills.
|
|
# See <https://github.com/php-stubs/wordpress-stubs/issues/100>.
|
|
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_contains.php
|
|
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_starts_with.php
|
|
- vendor/phpstan/php-8-stubs/stubs/ext/standard/str_ends_with.php
|
|
bootstrapFiles:
|
|
- tests/phpstan/bootstrap.php
|
|
reportMaybesInMethodSignatures: false
|
|
WPCompat:
|
|
requiresAtLeast: '6.6'
|
|
strictRules:
|
|
disallowedEmpty: false
|
|
strictArrayFilter: false
|
|
ignoreErrors:
|
|
# TODO: Revisit ArrayAccess types in WP_REST_Request
|
|
# See https://github.com/php-stubs/wordpress-stubs/pull/66
|
|
# See https://github.com/phpstan/phpstan/issues/8549
|
|
-
|
|
message: "/^Cannot assign offset '.*' to WP_REST_Request/"
|
|
paths:
|
|
- inc/class-rest-attachments-controller.php
|
|
- inc/class-rest-upload-requests-controller.php
|
|
-
|
|
message: "/^WP_REST_Request<.*> does not accept/"
|
|
paths:
|
|
- inc/class-rest-attachments-controller.php
|
|
- inc/class-rest-upload-requests-controller.php
|
|
-
|
|
identifier: method.childParameterType
|
|
path: inc/class-rest-upload-requests-controller.php
|
|
-
|
|
identifier: offsetAccess.nonOffsetAccessible
|
|
path: inc/functions.php
|
|
-
|
|
identifier: requireOnce.fileNotFound
|
|
includes:
|
|
- phar://phpstan.phar/conf/bleedingEdge.neon
|