-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ switch phan for phpstan (see chillerlan/php-qrcode#277)
- Loading branch information
1 parent
8ce1775
commit ee00916
Showing
15 changed files
with
122 additions
and
99 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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
/.build export-ignore | ||
/.github export-ignore | ||
/.phan export-ignore | ||
/.phpdoc export-ignore | ||
/docs export-ignore | ||
/examples export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.readthedocs.yml export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpdoc.xml.dist export-ignore | ||
/phpmd.xml.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/.build export-ignore | ||
/.github export-ignore | ||
/.idea export-ignore | ||
/.phan export-ignore | ||
/.phpdoc export-ignore | ||
/docs export-ignore | ||
/examples export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.readthedocs.yml export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpdoc.xml.dist export-ignore | ||
/phpmd.xml.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/phpstan.dist.neon export-ignore | ||
/phpstan-baseline.neon export-ignore | ||
|
||
*.php diff=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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ phpcs.xml | |
phpdoc.xml | ||
phpmd.xml | ||
phpunit.xml | ||
phpstan.neon | ||
*.phpunit.result.cache |
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Cannot access offset 'server_time' on mixed\\.$#" | ||
count: 1 | ||
path: src/Authenticators/SteamGuard.php | ||
|
||
- | ||
message: "#^Cannot cast mixed to int\\.$#" | ||
count: 1 | ||
path: src/Authenticators/SteamGuard.php | ||
|
||
- # $response is always string here because CURLOPT_RETURNTRANSFER is set to true | ||
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|true given\\.$#" | ||
count: 1 | ||
path: src/Authenticators/SteamGuard.php | ||
|
||
- # the value given to getHMAC() is always int - this is most likely a false positive | ||
message: "#^Parameter \\#1 \\$counter of method chillerlan\\\\Authenticator\\\\Authenticators\\\\HOTP\\:\\:getHMAC\\(\\) expects int, float\\|int given\\.$#" | ||
count: 1 | ||
path: src/Authenticators/TOTP.php | ||
|
||
- # 32-bit system check | ||
message: "#^Call to function is_int\\(\\) with 59\\|1111111109\\|1111111111\\|1234567890\\|2000000000\\|20000000000 will always evaluate to true\\.$#" | ||
count: 1 | ||
path: tests/Authenticators/SteamGuardTest.php | ||
|
||
- # 32-bit system check | ||
message: "#^Call to function is_int\\(\\) with 59\\|1111111109\\|1111111111\\|1234567890\\|2000000000\\|20000000000 will always evaluate to true\\.$#" | ||
count: 1 | ||
path: tests/Authenticators/TOTPTest.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,17 @@ | ||
# https://phpstan.org/config-reference | ||
|
||
parameters: | ||
level: 9 | ||
tmpDir: .build/phpstan-cache | ||
paths: | ||
- examples | ||
- src | ||
- tests | ||
|
||
treatPhpDocTypesAsCertain: false | ||
|
||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/phpstan/phpstan/conf/bleedingEdge.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/chillerlan/php-settings-container/rules-magic-access.neon |
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
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