Closed ahoiroman closed 1 year ago
OS: darwin Invoker Version: 2.9.0 Laravel Version: 9.5.1 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/placeholder?project=local-d4tXFtyAvJZYLdo3QE3kKi
Error:
AssertionError assert($parameterType instanceof \ReflectionNamedType || $parameterType === null) at phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/vendor/roave/better-reflection/src/SourceLocator/SourceStubber/ReflectionSourceStubber.php:332 328▕ if ($parameterReflection->isPassedByReference()) { 329▕ $parameterNode->makeByRef(); 330▕ } 331▕ $parameterType = $parameterReflection->getType(); ➜ 332▕ \assert($parameterType instanceof \ReflectionNamedType || $parameterType === null); 333▕ if ($parameterReflection->getType() !== null) { 334▕ $parameterNode->setType($this->formatType($parameterType)); 335▕ } 336▕ return $parameterNode; [2m+13 vendor frames [22m 14 [internal]:0 _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::_HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\{closure}(Object(_HumbugBoxf4b902e0e9ad\PhpParser\Node\Name\FullyQualified)) [2m+2 vendor frames [22m 17 phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/ModelLookupService.php:159 _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::getTraitNames()
As I have no clue on which part of my Laravel app this is happening, I'd need assistance in debugging here.
Thanks a lot!
Which PHP version are you using?
8.1. but it also happens with 8.0
This error will be gone in the next Invoker version.
OS: darwin Invoker Version: 2.9.0 Laravel Version: 9.5.1 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/placeholder?project=local-d4tXFtyAvJZYLdo3QE3kKi
Error:
As I have no clue on which part of my Laravel app this is happening, I'd need assistance in debugging here.
Thanks a lot!