-
-
Notifications
You must be signed in to change notification settings - Fork 929
Open
phpstan/phpstan-src
#4336Labels
Milestone
Description
Bug report
As requested by the output, I'm posting the following stack trace here as an issue.
I do not fully understand whether you need some source files, too. In case of "yes", I'm happy to post them here, too.
Thanks 🙂
Internal error: Internal error: This enum case does not have a value in file
C:\P\zp-next\Main\Source\MainBackend\cms\webbing\assets\images\usages\ImageAssetUsageExtensions.inc.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:
#0
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Refl
ection/Adapter/ReflectionEnumBackedCase.php(112): PHPStan\BetterReflection\Reflection\ReflectionEnumCase->getValueExpr()
#1 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(594):
PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnumBackedCase->getValueExpr()
#2
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Php/PhpClassReflectionExtension
.php(226): PHPStan\Reflection\ClassReflection->getEnumCases()
#3
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Php/PhpClassReflectionExtension
.php(209): PHPStan\Reflection\Php\PhpClassReflectionExtension->createProperty()
#4 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(533):
PHPStan\Reflection\Php\PhpClassReflectionExtension->getNativeProperty()
#5 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(501):
PHPStan\Reflection\ClassReflection->getNativeProperty()
#6 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Type/ObjectType.php(153):
PHPStan\Reflection\ClassReflection->getProperty()
#7 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Type/ObjectType.php(130):
PHPStan\Type\ObjectType->getUnresolvedPropertyPrototype()
#8 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(3584):
PHPStan\Type\ObjectType->getProperty()
#9 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(3591):
PHPStan\Analyser\MutatingScope->getPropertyReflection()
#10 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(1444):
PHPStan\Analyser\MutatingScope->propertyFetchType()
#11 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(1450):
PHPStan\Analyser\MutatingScope->PHPStan\Analyser\{closure}()
#12 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(558):
PHPStan\Analyser\MutatingScope->resolveType()
#13 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(921):
PHPStan\Analyser\MutatingScope->getType()
#14 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(558):
PHPStan\Analyser\MutatingScope->resolveType()
#15
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Rules/FunctionCallParametersCheck.php(115)
: PHPStan\Analyser\MutatingScope->getType()
#16
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Classes/InstantiationRule.php(149):
PHPStan\Rules\FunctionCallParametersCheck->check()
#17
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Classes/InstantiationRule.php(59):
PHPStan\Rules\Classes\InstantiationRule->checkClassName()
#18 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(105):
PHPStan\Rules\Classes\InstantiationRule->processNode()
#19 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Node/ClassStatementsGatherer.php(95):
PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()
#20 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(477):
PHPStan\Node\ClassStatementsGatherer->__invoke()
#21 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(2405):
PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}()
#22 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1418):
PHPStan\Analyser\NodeScopeResolver->callNodeCallbackWithExpression()
#23 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(594):
PHPStan\Analyser\NodeScopeResolver->processExprNode()
#24 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):
PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#25 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(966):
PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#26 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):
PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#27 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(492):
PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#28 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):
PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#29 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(570):
PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#30 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(304):
PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#31 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(174):
PHPStan\Analyser\NodeScopeResolver->processNodes()
#32 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(147):
PHPStan\Analyser\FileAnalyser->analyseFile()
#33
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/Event
EmitterTrait.php(97): PHPStan\Command\WorkerCommand->PHPStan\Command\{closure}()
#34
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/clue/ndjson-react/src/Decoder.php(110):
_PHPStan_c057aa9d1\Evenement\EventEmitter->emit()
#35
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/Event
EmitterTrait.php(97): _PHPStan_c057aa9d1\Clue\React\NDJson\Decoder->handleData()
#36 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/Util.php(62):
_PHPStan_c057aa9d1\Evenement\EventEmitter->emit()
#37
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/Event
EmitterTrait.php(97): _PHPStan_c057aa9d1\React\Stream\Util::_PHPStan_c057aa9d1\React\Stream\{closure}()
#38
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/DuplexResourceStream.p
hp(154): _PHPStan_c057aa9d1\Evenement\EventEmitter->emit()
#39
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.p
hp(201): _PHPStan_c057aa9d1\React\Stream\DuplexResourceStream->handleData()
#40
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.p
hp(173): _PHPStan_c057aa9d1\React\EventLoop\StreamSelectLoop->waitForStreamActivity()
#41 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(107):
_PHPStan_c057aa9d1\React\EventLoop\StreamSelectLoop->run()
#42
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Command/Command.php(259
): PHPStan\Command\WorkerCommand->execute()
#43
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(865):
_PHPStan_c057aa9d1\Symfony\Component\Console\Command\Command->run()
#44
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(259):
_PHPStan_c057aa9d1\Symfony\Component\Console\Application->doRunCommand()
#45
phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(157):
_PHPStan_c057aa9d1\Symfony\Component\Console\Application->doRun()
#46 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(122):
_PHPStan_c057aa9d1\Symfony\Component\Console\Application->run()
#47 phar://C:/P/zp-next/Main/Source/MainBackend/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(123):
_PHPStan_c057aa9d1\{closure}()
#48 C:\P\zp-next\Main\Source\MainBackend\vendor\phpstan\phpstan\phpstan(8): require('...')
#49 C:\P\zp-next\Main\Source\MainBackend\vendor\bin\phpstan(120): include('...')
#50 {main}
Child process error (exit code 1):
BradEwing