-
-
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.
feat(phpstan): Update phpstan to max level + use our conventions
- use our reusable larastrict/conventions package BC: some expectations now contains correct typehint
- Loading branch information
Showing
106 changed files
with
389 additions
and
313 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
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 |
---|---|---|
@@ -1,35 +1,16 @@ | ||
includes: | ||
- vendor/nunomaduro/larastan/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/rules.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/phpstan/phpstan-mockery/extension.neon | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
reportUnmatchedIgnoredErrors: true | ||
level: max | ||
|
||
parallel: | ||
processTimeout: 600.0 | ||
# Due the tests between Laravel versions | ||
reportUnmatchedIgnoredErrors: true | ||
|
||
paths: | ||
- src | ||
- tests | ||
|
||
# The level 8 is the highest level | ||
level: 8 | ||
|
||
# it is impossible to map toArray() | ||
checkMissingIterableValueType: false | ||
|
||
excludePaths: | ||
- 'tests/Feature/Testing/Commands/MakeExpectationCommand/*.php' | ||
|
||
ignoreErrors: | ||
# CastsAttributes template was added in Laravel 9.49 (remove when we drop L9 support) | ||
- | ||
message: "#^PHPDoc tag @implements contains generic type Illuminate\\\\Contracts\\\\Database\\\\Eloquent\\\\CastsAttributes\\<float, float\\|int\\|string\\|null\\> but interface Illuminate\\\\Contracts\\\\Database\\\\Eloquent\\\\CastsAttributes is not generic\\.$#" | ||
count: 1 | ||
path: src/Database/Models/Casts/FloatCast.php | ||
reportUnmatched: 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
Oops, something went wrong.