-
-
Notifications
You must be signed in to change notification settings - Fork 947
Internal error: "/var/www/prestashop-prod/classes/PrestaShopAutoload.php(143) : eval()'d code" is not a file in file #7445
Copy link
Copy link
Closed
Description
Bug report
Internal error: "/var/www/prestashop-prod/classes/PrestaShopAutoload.php(143) : eval()'d code"
is not a file in file
/var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/kjfixcartrulesrestrictions.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:
#0
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/ondrejmirtes/better-reflection/src/SourceLocator/Located/LocatedSource.php(38):
PHPStan\BetterReflection\SourceLocator\FileChecker::assertReadableFile()
#1
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Reflection/BetterReflection/SourceLocator/ReflectionClassSourceLocator.php(42):
PHPStan\BetterReflection\SourceLocator\Located\LocatedSource->__construct()
#2
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(46):
PHPStan\Reflection\BetterReflection\SourceLocator\ReflectionClassSourceLocator->locateIdentifier()
#3
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/ondrejmirtes/better-reflection/src/SourceLocator/Type/AggregateSourceLocator.php(28):
PHPStan\Reflection\BetterReflection\SourceLocator\AutoloadFunctionsSourceLocator->locateIdentifier()
#4
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/ondrejmirtes/better-reflection/src/SourceLocator/Type/MemoizingSourceLocator.php(33):
PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()
#5
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/ondrejmirtes/better-reflection/src/Reflector/DefaultReflector.php(32):
PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()
#6
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Reflection/BetterReflection/Reflector/MemoizingReflector.php(45):
PHPStan\BetterReflection\Reflector\DefaultReflector->reflectClass()
#7
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Reflection/BetterReflection/BetterReflectionProvider.php(152):
PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector->reflectClass()
#8
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Reflection/ReflectionProvider/MemoizingReflectionProvider.php(35):
PHPStan\Reflection\BetterReflection\BetterReflectionProvider->hasClass()
#9
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Rules/ClassCaseSensitivityCheck.php(34):
PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasClass()
#10
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Rules/Classes/ExistingClassInClassExtendsRule.php(42):
PHPStan\Rules\ClassCaseSensitivityCheck->checkClassNames()
#11
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Analyser/FileAnalyser.php(102): PHPStan\Rules\Classes\ExistingClassInClassExtendsRule->processNode()
#12
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Analyser/NodeScopeResolver.php(380): PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()
#13
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Analyser/NodeScopeResolver.php(296): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#14
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Analyser/FileAnalyser.php(189): PHPStan\Analyser\NodeScopeResolver->processNodes()
#15
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Command/WorkerCommand.php(143): PHPStan\Analyser\FileAnalyser->analyseFile()
#16
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/evenement/evenement/src/Evenement/EventEmitterTrait.php(97):
PHPStan\Command\WorkerCommand->PHPStan\Command\{closure}()
#17
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/clue/ndjson-react/src/Decoder.php(110): _PHPStan_98a3b0791\Evenement\EventEmitter->emit()
#18
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/evenement/evenement/src/Evenement/EventEmitterTrait.php(97):
_PHPStan_98a3b0791\Clue\React\NDJson\Decoder->handleData()
#19
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/react/stream/src/Util.php(62): _PHPStan_98a3b0791\Evenement\EventEmitter->emit()
#20
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/evenement/evenement/src/Evenement/EventEmitterTrait.php(97):
_PHPStan_98a3b0791\React\Stream\Util::_PHPStan_98a3b0791\React\Stream\{closure}()
#21
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/react/stream/src/DuplexResourceStream.php(154): _PHPStan_98a3b0791\Evenement\EventEmitter->emit()
#22
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/react/event-loop/src/StreamSelectLoop.php(201):
_PHPStan_98a3b0791\React\Stream\DuplexResourceStream->handleData()
#23
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/react/event-loop/src/StreamSelectLoop.php(173):
_PHPStan_98a3b0791\React\EventLoop\StreamSelectLoop->waitForStreamActivity()
#24
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/src/
Command/WorkerCommand.php(106): _PHPStan_98a3b0791\React\EventLoop\StreamSelectLoop->run()
#25
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/symfony/console/Command/Command.php(259): PHPStan\Command\WorkerCommand->execute()
#26
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/symfony/console/Application.php(856): _PHPStan_98a3b0791\Symfony\Component\Console\Command\Command->run()
#27
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/symfony/console/Application.php(259):
_PHPStan_98a3b0791\Symfony\Component\Console\Application->doRunCommand()
#28
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/vend
or/symfony/console/Application.php(157): _PHPStan_98a3b0791\Symfony\Component\Console\Application->doRun()
#29
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/bin/
phpstan(127): _PHPStan_98a3b0791\Symfony\Component\Console\Application->run()
#30
phar:///var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan.phar/bin/
phpstan(128): _PHPStan_98a3b0791\{closure}()
#31 /var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/phpstan/phpstan/phpstan(7):
require('phar:///var/www...')
#32 /var/www/prestashop-sandbox/modules/kjfixcartrulesrestrictions/vendor/bin/phpstan(92):
include('/var/www/presta...')
#33 {main}
Child process error (exit code 1): Phpstan configuration : _PS_ROOT_DIR_ successfully set to
/var/www/prestashop-prodDetected PS version 1.7.8.5
Code snippet that reproduces the problem
I don't really know, I'm just running PHPStan against a PrestaShop installation. Never had this problem before, I just run an analyse command:
_PS_ROOT_DIR_="/var/www/prestashop-prod" vendor/bin/phpstan analyse --configuration=tests/php/phpstan.dist.neon
I think it comes from me, I'd just like some help to debug it if possible.
Expected output
Should work.
Did PHPStan help you today? Did it make you happy in any way?
Not at all, I'm upset! I'm joking, PHPStan is amazing and helps me every day, thanks guys.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels