-
-
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.
[minor] add static code analysis with phpstan (#11)
- Loading branch information
Showing
11 changed files
with
109 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#1 \\$assertion of static method Zenstruck\\\\Assert\\:\\:run\\(\\) expects callable\\(\\)\\: void, Closure\\(\\)\\: 'value' given\\.$#" | ||
count: 1 | ||
path: tests/AssertTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$haystack of class Zenstruck\\\\Assert\\\\Assertion\\\\ContainsAssertion constructor expects bool\\|float\\|int\\|iterable\\|string, stdClass given\\.$#" | ||
count: 1 | ||
path: tests/Assertion/ContainsAssertionTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$haystack of class Zenstruck\\\\Assert\\\\Assertion\\\\CountAssertion constructor expects Countable\\|iterable, int given\\.$#" | ||
count: 1 | ||
path: tests/Assertion/CountAssertionTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$expectedException of class Zenstruck\\\\Assert\\\\Assertion\\\\ThrowsAssertion constructor expects \\(callable\\(Throwable\\)\\: void\\)\\|string, Closure\\(string\\)\\: void given\\.$#" | ||
count: 1 | ||
path: tests/Assertion/ThrowsAssertionTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$expectedException of class Zenstruck\\\\Assert\\\\Assertion\\\\ThrowsAssertion constructor expects \\(callable\\(Throwable\\)\\: void\\)\\|string, array\\{\\} given\\.$#" | ||
count: 1 | ||
path: tests/Assertion/ThrowsAssertionTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$expectedException of method Zenstruck\\\\Assert\\\\Expectation\\:\\:throws\\(\\) expects \\(callable\\(Throwable\\)\\: void\\)\\|string, Closure\\(Exception\\)\\: void given\\.$#" | ||
count: 3 | ||
path: tests/ExpectationTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$expectedException of method Zenstruck\\\\Assert\\\\Expectation\\:\\:throws\\(\\) expects \\(callable\\(Throwable\\)\\: void\\)\\|string, Closure\\(RuntimeException\\)\\: void given\\.$#" | ||
count: 3 | ||
path: tests/ExpectationTest.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,13 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
|
||
parameters: | ||
level: 8 | ||
paths: | ||
- src | ||
- tests | ||
treatPhpDocTypesAsCertain: false | ||
checkMissingIterableValueType: false | ||
bootstrapFiles: | ||
- vendor/bin/.phpunit/phpunit/vendor/autoload.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
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
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