You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Larastan will try to get all files in that namespace.
However, it won't loop through the ["tests/"] array, so it will pass ["tests/"] as a path to ClassMapGenerator::createMap(), when the method expects a string.
This results in:
Error thrown in /Users/samuel/Projects/lean/lean/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php on line 86 while loading bootstrap file /Users/samuel/Projects/lean/lean/vendor/phpstan/phpstan/../../nunomaduro/larastan/bootstrap.php: Call to a member function getPathname() on string
Code where the issue was found
ApplicationResolver line ~103
Solution
Loop through the paths, not just through the namespaces.
The text was updated successfully, but these errors were encountered:
--level
used: anyDescription
When you use:
Larastan will try to get all files in that namespace.
However, it won't loop through the
["tests/"]
array, so it will pass["tests/"]
as a path toClassMapGenerator::createMap()
, when the method expects a string.This results in:
Code where the issue was found
ApplicationResolver line ~103
Solution
Loop through the paths, not just through the namespaces.
The text was updated successfully, but these errors were encountered: