The type TypeHints\Unused\Parser\...lluminate\Routing\Route was not found. Did you mean Illuminate\Routing\Route? If so, make sure to prefix the type with \.
It seems like $route of type Illuminate\Routing\Route is incompatible with the declared type TypeHints\Unused\Parser\...lluminate\Routing\Route of property $route.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
The type TypeHints\Unused\Parser\...n\ParserActionInterface was not found. Did you mean TypeHints\Unused\Parser\...n\ParserActionInterface? If so, make sure to prefix the type with \.
The expression return $this returns the type TypeHints\Unused\Parser\Action\ClosureParser which is incompatible with the documented return type TypeHints\Unused\Parser\...n\ParserActionInterface.
Loading history...
41
}
42
43
/**
44
* @return ReflectionFunction
45
*/
46
protected function resolveMethod(): ReflectionFunction
47
{
48
return new ReflectionFunction($this->getClosure());
It seems like file($method->getFileName()) can also be of type false; however, parameter $array of array_slice() does only seem to accept array, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation