-
Notifications
You must be signed in to change notification settings - Fork 3
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 <[email protected]>
- Loading branch information
1 parent
f37b41c
commit 8e6df4e
Showing
3 changed files
with
123 additions
and
3 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,111 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Only booleans are allowed in an if condition, array\\<int, Twig\\\\Node\\\\Expression\\\\NameExpression\\> given\\.$#" | ||
count: 1 | ||
path: src/Node/TransNode.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" | ||
count: 1 | ||
path: src/Node/TransNode.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$name of class Twig\\\\Node\\\\Expression\\\\NameExpression constructor expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Node/TransNode.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" | ||
count: 2 | ||
path: src/Node/TransNode.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" | ||
count: 1 | ||
path: src/Node/TransNode.php | ||
|
||
- | ||
message: "#^Method PhpMyAdmin\\\\Twig\\\\Extensions\\\\TokenParser\\\\TransTokenParser\\:\\:preParse\\(\\) should return array\\{Twig\\\\Node\\\\Node, Twig\\\\Node\\\\Node\\|null, Twig\\\\Node\\\\Expression\\\\AbstractExpression\\|null, Twig\\\\Node\\\\Node\\|null, Twig\\\\Node\\\\Node\\|null, Twig\\\\Node\\\\Node\\|null, int, string\\} but returns array\\{mixed, Twig\\\\Node\\\\Node\\|null, mixed, Twig\\\\Node\\\\Node\\|null, Twig\\\\Node\\\\Node\\|null, mixed, int, string\\}\\.$#" | ||
count: 1 | ||
path: src/TokenParser/TransTokenParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$body of method PhpMyAdmin\\\\Twig\\\\Extensions\\\\TokenParser\\\\TransTokenParser\\:\\:checkTransString\\(\\) expects Twig\\\\Node\\\\Node, mixed given\\.$#" | ||
count: 1 | ||
path: src/TokenParser/TransTokenParser.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\)\\.$#" | ||
count: 1 | ||
path: test/I18nExtensionMoTranslatorDebugTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\)\\.$#" | ||
count: 1 | ||
path: test/I18nExtensionMoTranslatorSandboxTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\)\\.$#" | ||
count: 1 | ||
path: test/I18nExtensionSandboxTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotEmpty\\(\\)\\.$#" | ||
count: 1 | ||
path: test/I18nExtensionTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 6 | ||
path: test/Node/MoTranslatorTransTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" | ||
count: 8 | ||
path: test/Node/MoTranslatorTransTest.php | ||
|
||
- | ||
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" | ||
count: 3 | ||
path: test/Node/MoTranslatorTransTest.php | ||
|
||
- | ||
message: "#^Cannot call method compile\\(\\) on mixed\\.$#" | ||
count: 2 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Cannot call method getDebugInfo\\(\\) on mixed\\.$#" | ||
count: 4 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Cannot call method getSource\\(\\) on mixed\\.$#" | ||
count: 2 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEmpty\\(\\)\\.$#" | ||
count: 2 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" | ||
count: 7 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" | ||
count: 4 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" | ||
count: 5 | ||
path: test/Node/TransTest.php | ||
|
||
- | ||
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" | ||
count: 1 | ||
path: test/Node/TransTest.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,7 +1,12 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
parameters: | ||
level: max | ||
paths: | ||
- src | ||
- test | ||
checkBenevolentUnionTypes: true | ||
checkImplicitMixed: true | ||
checkTooWideReturnTypesInProtectedAndPublicMethods: true | ||
checkUninitializedProperties: true | ||
reportUnmatchedIgnoredErrors: true | ||
checkMissingIterableValueType: false |