-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor phpstan config files to support multiple php versions
- Loading branch information
Showing
6 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
includes: | ||
- phpstan.base.neon | ||
|
||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Function pspell_config_create is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_create;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Function pspell_config_ignore is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_ignore;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Function pspell_config_mode is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_mode;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Function pspell_new_config is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_new_config;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$dictionary of function pspell_check expects PSpell\\\\Dictionary, PSpell\\\\Dictionary\\|false given\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$dictionary of function pspell_check expects PSpell\\\\Dictionary, int given\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$dictionary of function pspell_suggest expects PSpell\\\\Dictionary, PSpell\\\\Dictionary\\|false given\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$dictionary of function pspell_suggest expects PSpell\\\\Dictionary, int given\\.$#" | ||
count: 1 | ||
path: src/Spellchecker/PHPPspell.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-webmozart-assert/extension.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
|
||
parameters: | ||
level: max | ||
|
||
treatPhpDocTypesAsCertain: false | ||
ignoreErrors: | ||
# Missing strict comparison | ||
- '#^Construct empty\(\) is not allowed. Use more strict comparison.$#' | ||
|
||
# function_exists call | ||
- | ||
message: "#^Class PhpSpellcheck\\\\t not found\\.$#" | ||
count: 1 | ||
path: src/Text/functions.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters