-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve typing using phpstan and fix some errors identified by p…
…hpstan
- Loading branch information
Showing
9 changed files
with
219 additions
and
200 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,20 @@ | ||
#includes: | ||
# - phpstan-baseline.neon | ||
parameters: | ||
reportUnmatchedIgnoredErrors: true | ||
dynamicConstantNames: | ||
- CONSOLE | ||
- YII_DEBUG | ||
level: 5 | ||
paths: | ||
- src | ||
checkMaybeUndefinedVariables: true | ||
checkGenericClassInNonGenericObjectType: false | ||
ignoreErrors: | ||
# All Yii setters accept `null` but their phpdoc is incorrect. | ||
- message: '~^Parameter #1 \$value of method yii\\web\\Request::set(.*)\(\) expects (.*), null given.$~' | ||
path: 'src/' | ||
- message: '~^Variable \$_COOKIE in isset\(\) always exists and is not nullable.$~' | ||
path: 'src/' | ||
stubFiles: | ||
- tests/Yii.stub |
Oops, something went wrong.