https://github.com/PressForward/pressforward
Revision ce83222a81bedcad4336d9ae344ef065076d58db authored by Boone B Gorges on 16 May 2023, 20:52:23 UTC, committed by Boone B Gorges on 16 May 2023, 20:52:23 UTC
1 parent 600aac7
Tip revision: ce83222a81bedcad4336d9ae344ef065076d58db authored by Boone B Gorges on 16 May 2023, 20:52:23 UTC
Tested up to WP 6.2.
Tested up to WP 6.2.
Tip revision: ce83222
phpstan.neon
parameters:
level: 3
bootstrapFiles:
- constants.php
paths:
- .
excludePaths:
- ./vendor/
- ./node_modules/
- ./tests/
- ./Libraries/FiveFiltersReadability
scanFiles:
- ./Libraries/FiveFiltersReadability/Readability.php
ignoreErrors:
- # Template files have variables included in function scope.
message: '#Variable \$[a-zA-Z0-9\\_]+ might not be defined.$#'
path: ./parts
- # WP-defined constant.
message: '#^Constant WPINC not found.$#'
- # WordPress standard for array documentation.
message: '#^PHPDoc tag @var above a (function|method) has no effect.$#'
- # PHPStan is being overly strict.
message: '#^Access to an undefined property.*$#'
path: ./Libraries/PFOpenGraph.php
- # Ignoring all PHPDoc-related issues in Jaxion.
message: '#^PHPDoc tag.*$#'
path: ./Libraries/Jaxion
- # WP_Query can return ints in `posts`, but doesn't in this case.
message: '#^Cannot access property \$[a-zA-Z0-9_]+ on int\|WP_Post\.$#'
path: ./Core/API/StatsEndpoint.php
- # get_taxonomies() is returning objects here, not strings.
message: '#Cannot access property \$rest_controller_class on string\.$#'
path: ./Core/API/PFEndpoint.php
- # False positive about property of a tidy object.
message: '#^Access to an undefined property tidy::\$value\.$#'
path: ./Controllers/PF_Readability.php
- # Non-typed stdClass objects passed in an array aren't understood by PHPStan. Should be refactored.
message: '#^Access to an undefined property object::\$[a-zA-Z]+\.$#'
path: ./modules/opml-subscribe/opml-subscribe.php
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...