Skip to content

Commit

Permalink
Add editorUrlTitle to phpstan.neon
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Aug 9, 2023
1 parent 9a1a8ff commit e17551f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
editorUrlTitle: '%%relFile%%:%%line%%'
phpVersion: 70400
inferPrivatePropertyTypeFromConstructor: true
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
paths:
- plugin-name.php
- plugin-name-php-5.3.php
- src/
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
level: max
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
# WP-CLI accepts a class as callable
- '/^Parameter #2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/'

0 comments on commit e17551f

Please sign in to comment.