Closed dhruva81 closed 1 year ago
OS: darwin Invoker Version: 2.9.0 Laravel Version: 9.11.0 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/placeholder?project=local-d9ZvwgQBBsoeuNoqqZJaKQ
Error:
AssertionError assert($returnType instanceof \ReflectionNamedType || $returnType === null) at phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/vendor/roave/better-reflection/src/SourceLocator/SourceStubber/ReflectionSourceStubber.php:265 261▕ $this->addMethodFlags($methodNode, $methodReflection); 262▕ $this->addDocComment($methodNode, $methodReflection); 263▕ $this->addParameters($methodNode, $methodReflection); 264▕ $returnType = $methodReflection->getReturnType(); ➜ 265▕ \assert($returnType instanceof \ReflectionNamedType || $returnType === null); 266▕ if ($methodReflection->getReturnType() !== null) { 267▕ $methodNode->setReturnType($this->formatType($returnType)); 268▕ } 269▕ $classNode->addStmt($methodNode); [2m+11 vendor frames [22m 12 [internal]:0 _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::_HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\{closure}(Object(_HumbugBoxf4b902e0e9ad\PhpParser\Node\Name\FullyQualified)) [2m+2 vendor frames [22m 15 phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/ModelLookupService.php:159 _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::getTraitNames()
This will be fixed in the next version 👍
OS: darwin Invoker Version: 2.9.0 Laravel Version: 9.11.0 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/placeholder?project=local-d9ZvwgQBBsoeuNoqqZJaKQ
Error: