beyondcode / invoker-community

74 stars 2 forks source link

Faile to locate vendor/laravel/framework/src/Illuminate/Database/Eloquent/Prunable.php #320

Closed curtsheller closed 1 year ago

curtsheller commented 1 year ago

OS: linux Invoker Version: 2.10.0 Laravel Version: 9.36.4 Local project: true PHP Binary: /usr/bin/php Route: /project/placeholder?project=local-4krP9EYok4Kv3FTZDjoyuW

Error:

_HumbugBox5bc770953b87\Roave\BetterReflection\SourceLocator\Ast\Exception\ParseToAstFailure 

  AST failed to parse in located source (in /home/curtsheller/Sites/learningukulele/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Prunable.php)

  at phar:///tmp/.mount_Invoke1ypV8k/resources/invoker.phar/vendor/roave/better-reflection/src/SourceLocator/Ast/Exception/ParseToAstFailure.php:22
     18▕         }
     19▕         if ($additionalInformation === '') {
     20▕             $additionalInformation = \sprintf(' (first 20 characters: %s)', \substr($locatedSource->getSource(), 0, 20));
     21▕         }
  ➜  22▕         return new self(\sprintf('AST failed to parse in located source%s', $additionalInformation), 0, $previous);
     23▕     }
     24▕ }
     25▕

      +1 vendor frames 
  2   [internal]:0
      _HumbugBox5bc770953b87\Roave\BetterReflection\Reflection\ReflectionClass::_HumbugBox5bc770953b87\Roave\BetterReflection\Reflection\{closure}()

  3   [internal]:0
      _HumbugBox5bc770953b87\Invoker\ModelLookupService::_HumbugBox5bc770953b87\Invoker\{closure}()
mpociot commented 1 year ago

Could you share your PHP version?

mpociot commented 1 year ago

This will be fixed in the next version of Invoker