-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style #12 Add PHPStan to the build (pamil)
This PR was merged into the 1.3 branch. Discussion ---------- Fixes #5. Commits ------- 9c7b535 Set up PHPStan 4aa535d Improve code to match PHPStan's level 4 ca99d98 Improve code to match PHPStan's level 5 5a3cce9 Improve code to match PHPStan's level 6 8ea9cbe Improve code to match PHPStan's level "max"
- Loading branch information
Showing
10 changed files
with
82 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,7 @@ install: | |
script: | ||
- composer validate --strict | ||
|
||
- composer analyse | ||
|
||
- vendor/bin/phpspec run | ||
- vendor/bin/phpunit |
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,15 @@ | ||
includes: | ||
- vendor/proget-hq/phpstan-phpspec/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
|
||
- vendor/phpstan/phpstan-phpunit/rules.neon | ||
|
||
parameters: | ||
reportUnmatchedIgnoredErrors: false | ||
specDir: 'spec/' | ||
ignoreErrors: | ||
# PHPStan extension bug | ||
- '/proget-hq\/phpstan-phpspec\/src\/NodeVisitor\/CollaboratorResolver\.php/' | ||
|
||
# Replaced `'` with `.`, could not figure out how to escape single quotes | ||
- '/^Call to function method_exists\(\) with .Symfony\\\\Component…. and .getRootNode. will always evaluate to false\.$/' |
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