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.
This comes up when using higher order messages.
- '#Call to an undefined method Illuminate\\Support\\HigherOrder#'
This comes up when you add database/factories
to your analysed paths.
- path: database/factories/*
message: '#Undefined variable: \$factory#'