-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
0bbf821
commit ad0a108
Showing
5 changed files
with
222 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to function assert\\(\\) with true will always evaluate to true\\.$#" | ||
count: 1 | ||
path: src/Cache/ApcuCache.php | ||
|
||
- | ||
message: "#^Call to function is_array\\(\\) with array\\<string, string\\> will always evaluate to true\\.$#" | ||
count: 1 | ||
path: src/Cache/ApcuCache.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" | ||
count: 1 | ||
path: src/Cache/ApcuCache.php | ||
|
||
- | ||
message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" | ||
count: 1 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" | ||
count: 2 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Method PhpMyAdmin\\\\MoTranslator\\\\Loader\\:\\:detectlocale\\(\\) should return string but returns mixed\\.$#" | ||
count: 1 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#" | ||
count: 2 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" | ||
count: 1 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in an if condition, string given\\.$#" | ||
count: 1 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" | ||
count: 5 | ||
path: src/Loader.php | ||
|
||
- | ||
message: "#^Casting to int something that's already int\\.$#" | ||
count: 1 | ||
path: src/MoParser.php | ||
|
||
- | ||
message: "#^Method PhpMyAdmin\\\\MoTranslator\\\\StringReader\\:\\:readint\\(\\) should return int but returns mixed\\.$#" | ||
count: 1 | ||
path: src/StringReader.php | ||
|
||
- | ||
message: "#^Method PhpMyAdmin\\\\MoTranslator\\\\StringReader\\:\\:readintarray\\(\\) should return array\\<int\\> but returns array\\.$#" | ||
count: 1 | ||
path: src/StringReader.php | ||
|
||
- | ||
message: "#^Foreach overwrites \\$header with its value variable\\.$#" | ||
count: 1 | ||
path: src/Translator.php | ||
|
||
- | ||
message: "#^Only numeric types are allowed in \\-, int\\|null given on the left side\\.$#" | ||
count: 1 | ||
path: src/Translator.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuCacheFactoryTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuCacheFactoryTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/Cache/ApcuCacheFactoryTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:markTestSkipped\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuCacheFactoryTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/Cache/ApcuCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" | ||
count: 4 | ||
path: tests/Cache/ApcuCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 11 | ||
path: tests/Cache/ApcuCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:markTestSkipped\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:markTestSkipped\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/ApcuDisabledTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/InMemoryCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/InMemoryCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 4 | ||
path: tests/Cache/InMemoryCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/Cache/InMemoryCacheTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 9 | ||
path: tests/FunctionsTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 13 | ||
path: tests/LoaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:isInstanceOf\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/LoaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:markTestSkipped\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/LoaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\TestCase\\:\\:once\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/LoaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 16 | ||
path: tests/MoFilesTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 3 | ||
path: tests/PluralFormulaTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 3 | ||
path: tests/PluralTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFileExists\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/StringReaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/StringReaderTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 6 | ||
path: tests/TranslatorTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 6 | ||
path: tests/TranslatorTest.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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
parameters: | ||
level: max | ||
paths: | ||
- src | ||
- tests | ||
checkBenevolentUnionTypes: true | ||
checkImplicitMixed: true | ||
checkTooWideReturnTypesInProtectedAndPublicMethods: true | ||
checkUninitializedProperties: true | ||
reportUnmatchedIgnoredErrors: true |
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