-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #564 from spawnia/reportUnmatchedIgnoredErrors
- Loading branch information
Showing
5 changed files
with
81 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
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,23 @@ | ||
## Errors To Ignore | ||
|
||
Some parts of Laravel are currently too magical for Larastan/PHPStan to understand. | ||
|
||
If you hit those errors in your project, you can add them to your `phpstan.neon` as needed. | ||
[Learn more about ignoring errors in PHPStan.](https://phpstan.org/user-guide/ignoring-errors) | ||
|
||
### Higher Order Messages | ||
|
||
This comes up when using [higher order messages](https://laravel.com/docs/collections#higher-order-messages). | ||
|
||
```neon | ||
- '#Call to an undefined method Illuminate\\Support\\HigherOrder#' | ||
``` | ||
|
||
### Factories | ||
|
||
This comes up when you add `database/factories` to your analysed paths. | ||
|
||
```neon | ||
- path: database/factories/* | ||
message: '#Undefined variable: \$factory#' | ||
``` |
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