includes
7 months ago
composer.json
7 months ago
mcp-adapter.php
9 months ago
phpcs.xml.dist
9 months ago
phpstan.neon.dist
7 months ago
phpstan.neon.dist
42 lines
| 1 | parameters: |
| 2 | # Rules |
| 3 | treatPhpDocTypesAsCertain: false |
| 4 | inferPrivatePropertyTypeFromConstructor: true |
| 5 | checkExplicitMixedMissingReturn: true |
| 6 | checkFunctionNameCase: true |
| 7 | checkInternalClassCaseSensitivity: true |
| 8 | checkTooWideReturnTypesInProtectedAndPublicMethods: true |
| 9 | polluteScopeWithAlwaysIterableForeach: false |
| 10 | polluteScopeWithLoopInitialAssignments: false |
| 11 | reportAlwaysTrueInLastCondition: true |
| 12 | reportStaticMethodSignatures: true |
| 13 | reportWrongPhpDocTypeInVarTag: true |
| 14 | |
| 15 | # Configuration |
| 16 | level: 8 |
| 17 | phpVersion: |
| 18 | min: 70400 |
| 19 | max: 80400 |
| 20 | bootstrapFiles: |
| 21 | - mcp-adapter.php |
| 22 | - vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php |
| 23 | paths: |
| 24 | - includes/ |
| 25 | scanFiles: |
| 26 | # These are needed due config.platform.php being 7.4 in composer.json and wordpress-stubs not including polyfills. |
| 27 | # See <https://github.com/php-stubs/wordpress-stubs/issues/100>. |
| 28 | - vendor/phpstan/php-8-stubs/stubs/ext/standard/str_contains.php |
| 29 | - vendor/phpstan/php-8-stubs/stubs/ext/standard/str_starts_with.php |
| 30 | scanDirectories: |
| 31 | - ../abilities-api |
| 32 | excludePaths: |
| 33 | analyse: |
| 34 | - tests/ |
| 35 | - vendor/ |
| 36 | analyseAndScan: |
| 37 | - node_modules (?) |
| 38 | |
| 39 | ignoreErrors: |
| 40 | - # TODO: These are too noisy, we'll restore them in the future. |
| 41 | identifier: missingType.iterableValue |
| 42 |