beyondcode / invoker-community

74 stars 2 forks source link

It seems like something went wrong... #292

Closed bracketsdigital closed 1 year ago

bracketsdigital commented 2 years ago

Having just updated to Invoker v2.9.0 am getting the following when attempting to load a specific local project. Any ideas?


OS: darwin Invoker Version: 2.9.0 Laravel Version: 9.10.0 Local project: true PHP Binary: /usr/local/bin/php Route: /home?project=local-oE6HfpHWg2sn8i9gurv5wS

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;

      +13 vendor frames 
  14  [internal]:0
      _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::_HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\{closure}(Object(_HumbugBoxf4b902e0e9ad\PhpParser\Node\Name\FullyQualified))

      +2 vendor frames 
  17  phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/ModelLookupService.php:159
      _HumbugBoxf4b902e0e9ad\Roave\BetterReflection\Reflection\ReflectionClass::getTraitNames()
mpociot commented 1 year ago

This will be fixed in the next version 👍