Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error: Internal error: Invalid value in file #8029

Closed
ivangrozni opened this issue Sep 19, 2022 · 3 comments
Closed

Internal error: Internal error: Invalid value in file #8029

ivangrozni opened this issue Sep 19, 2022 · 3 comments
Labels

Comments

@ivangrozni
Copy link

ivangrozni commented Sep 19, 2022

I have 3 files in my project that throw this error Internal error: Internal error: Invalid value in file.

Running with -v flag doesn't provide me with enough data I'd be able to resolve it myself:

 -- -------------------------------------------------------------------------------------------------------------------------------------------------- 
     Error                                                                                                                                             
 -- -------------------------------------------------------------------------------------------------------------------------------------------------- 
     Internal error: Internal error: Invalid value in file                                                                                             
     /home/...<project>/src/modules/retresco/src/Commands/RetrescoCommands.php                                              
                                                                                                                                                       
     Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:                                           
     #0                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/CachingVi  
     sitor.php(80): PhpParser\BuilderHelpers::normalizeValue()                                                                                         
     #1                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (113): PHPStan\Reflection\BetterReflection\SourceLocator\CachingVisitor->enterNode()                                                              
     #2                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (133): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #3                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (196): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #4                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (85): PhpParser\NodeTraverser->traverseArray()                                                                                                    
     #5                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/FileNodes  
     Fetcher.php(38): PhpParser\NodeTraverser->traverse()                                                                                              
     #6                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/Optimized  
     DirectorySourceLocator.php(86): PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher->fetchNodes()                                  
     #7                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator->locateIdentifier()       
     #8                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/RewriteCl  
     assAliasSourceLocator.php(28): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                             
     #9                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\RewriteClassAliasSourceLocator->locateIdentifier()        
     #10                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/MemoizingSourceLocator.php(33): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                      
     #11                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/Def  
     aultReflector.php(58): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()                                     
     #12                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/Reflector/MemoizingRefl  
     ector.php(78): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectFunction()                                                             
     #13                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(279): PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector->reflectFunction()                                                   
     #14                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(336): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->PHPStan\Reflection\BetterReflection\{closure}()                         
     #15                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(277): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveName()                                                           
     #16                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(221): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveFunctionName()                                                   
     #17                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionPr  
     ovider.php(63): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->hasFunction()                                                       
     #18                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Functions/CallToNonExistentFunctionRule.php(4  
     1): PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasFunction()                                                              
     #19 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(105):                  
     PHPStan\Rules\Functions\CallToNonExistentFunctionRule->processNode()                                                                              
     #20 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Node/ClassStatementsGatherer.php(95):            
     PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()                                                                                       
     #21 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(477):             
     PHPStan\Node\ClassStatementsGatherer->__invoke()                                                                                                  
     #22 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(2403):            
     PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}()                                                                                  
     #23 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1416):            
     PHPStan\Analyser\NodeScopeResolver->callNodeCallbackWithExpression()                                                                              
     #24 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(2638):            
     PHPStan\Analyser\NodeScopeResolver->processExprNode()                                                                                             
     #25 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1637):            
     PHPStan\Analyser\NodeScopeResolver->processArgs()                                                                                                 
     #26 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(529):             
     PHPStan\Analyser\NodeScopeResolver->processExprNode()                                                                                             
     #27 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #28 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(492):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #29 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #30 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(570):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #31 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #32 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(542):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #33 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(304):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #34 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(174):                  
     PHPStan\Analyser\NodeScopeResolver->processNodes()                                                                                                
     #35 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(147):                  
     PHPStan\Analyser\FileAnalyser->analyseFile()                                                                                                      
     #36                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): PHPStan\Command\WorkerCommand->PHPStan\Command\{closure}()                                                                           
     #37 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/clue/ndjson-react/src/Decoder.php(110):       
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #38                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\Clue\React\NDJson\Decoder->handleData()                                                                           
     #39 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/Util.php(62):                
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #40                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\React\Stream\Util::_PHPStan_52b7bec27\React\Stream\{closure}()                                                    
     #41                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/DuplexResourceStream.php(154):   
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #42                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(201):   
     _PHPStan_52b7bec27\React\Stream\DuplexResourceStream->handleData()                                                                                
     #43                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(173):   
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->waitForStreamActivity()                                                                      
     #44 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(107):                  
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->run()                                                                                        
     #45 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Command/Command.php(259):     
     PHPStan\Command\WorkerCommand->execute()                                                                                                          
     #46 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(865):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Command\Command->run()                                                                               
     #47 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(259):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRunCommand()                                                                          
     #48 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(157):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRun()                                                                                 
     #49 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(124):                                    
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->run()                                                                                   
     #50 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(125): _PHPStan_52b7bec27\{closure}()     
     #51 /home/...<project>/vendor/phpstan/phpstan/phpstan(8): require('...')                                               
     #52 {main}                                                                                                                                        
     Internal error: Internal error: Invalid value in file                                                                                             
     /home/...<project>/src/modules/main_efs/src/Commands/MainEfsCommands.php                                               
                                                                                                                                                       
     Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:                                           
     #0                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/CachingVi  
     sitor.php(80): PhpParser\BuilderHelpers::normalizeValue()                                                                                         
     #1                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (113): PHPStan\Reflection\BetterReflection\SourceLocator\CachingVisitor->enterNode()                                                              
     #2                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (133): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #3                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (196): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #4                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (85): PhpParser\NodeTraverser->traverseArray()                                                                                                    
     #5                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/FileNodes  
     Fetcher.php(38): PhpParser\NodeTraverser->traverse()                                                                                              
     #6                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/Optimized  
     DirectorySourceLocator.php(86): PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher->fetchNodes()                                  
     #7                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator->locateIdentifier()       
     #8                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/RewriteCl  
     assAliasSourceLocator.php(28): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                             
     #9                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\RewriteClassAliasSourceLocator->locateIdentifier()        
     #10                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/MemoizingSourceLocator.php(33): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                      
     #11                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/Def  
     aultReflector.php(58): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()                                     
     #12                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/Reflector/MemoizingRefl  
     ector.php(78): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectFunction()                                                             
     #13                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(279): PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector->reflectFunction()                                                   
     #14                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(336): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->PHPStan\Reflection\BetterReflection\{closure}()                         
     #15                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(277): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveName()                                                           
     #16                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(221): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveFunctionName()                                                   
     #17                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionPr  
     ovider.php(63): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->hasFunction()                                                       
     #18                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Functions/CallToNonExistentFunctionRule.php(4  
     1): PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasFunction()                                                              
     #19 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(105):                  
     PHPStan\Rules\Functions\CallToNonExistentFunctionRule->processNode()                                                                              
     #20 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Node/ClassStatementsGatherer.php(95):            
     PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()                                                                                       
     #21 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(477):             
     PHPStan\Node\ClassStatementsGatherer->__invoke()                                                                                                  
     #22 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(2403):            
     PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}()                                                                                  
     #23 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1416):            
     PHPStan\Analyser\NodeScopeResolver->callNodeCallbackWithExpression()                                                                              
     #24 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(2638):            
     PHPStan\Analyser\NodeScopeResolver->processExprNode()                                                                                             
     #25 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1637):            
     PHPStan\Analyser\NodeScopeResolver->processArgs()                                                                                                 
     #26 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(529):             
     PHPStan\Analyser\NodeScopeResolver->processExprNode()                                                                                             
     #27 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #28 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(607):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #29 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #30 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(492):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #31 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #32 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(570):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #33 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #34 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(542):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #35 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(304):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #36 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(174):                  
     PHPStan\Analyser\NodeScopeResolver->processNodes()                                                                                                
     #37 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(147):                  
     PHPStan\Analyser\FileAnalyser->analyseFile()                                                                                                      
     #38                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): PHPStan\Command\WorkerCommand->PHPStan\Command\{closure}()                                                                           
     #39 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/clue/ndjson-react/src/Decoder.php(110):       
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #40                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\Clue\React\NDJson\Decoder->handleData()                                                                           
     #41 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/Util.php(62):                
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #42                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\React\Stream\Util::_PHPStan_52b7bec27\React\Stream\{closure}()                                                    
     #43                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/DuplexResourceStream.php(154):   
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #44                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(201):   
     _PHPStan_52b7bec27\React\Stream\DuplexResourceStream->handleData()                                                                                
     #45                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(173):   
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->waitForStreamActivity()                                                                      
     #46 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(107):                  
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->run()                                                                                        
     #47 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Command/Command.php(259):     
     PHPStan\Command\WorkerCommand->execute()                                                                                                          
     #48 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(865):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Command\Command->run()                                                                               
     #49 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(259):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRunCommand()                                                                          
     #50 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(157):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRun()                                                                                 
     #51 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(124):                                    
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->run()                                                                                   
     #52 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(125): _PHPStan_52b7bec27\{closure}()     
     #53 /home/...<project>/vendor/phpstan/phpstan/phpstan(8): require('...')                                               
     #54 {main}                                                                                                                                        
     Internal error: Internal error: Invalid value in file                                                                                             
     /home/...<project>/src/modules/devel_efs/src/Commands/EfsSanitizeCommand.php                                           
                                                                                                                                                       
     Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:                                           
     #0                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/CachingVi  
     sitor.php(80): PhpParser\BuilderHelpers::normalizeValue()                                                                                         
     #1                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (113): PHPStan\Reflection\BetterReflection\SourceLocator\CachingVisitor->enterNode()                                                              
     #2                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (133): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #3                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (196): PhpParser\NodeTraverser->traverseNode()                                                                                                    
     #4                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php  
     (85): PhpParser\NodeTraverser->traverseArray()                                                                                                    
     #5                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/FileNodes  
     Fetcher.php(38): PhpParser\NodeTraverser->traverse()                                                                                              
     #6                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/Optimized  
     DirectorySourceLocator.php(86): PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher->fetchNodes()                                  
     #7                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator->locateIdentifier()       
     #8                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/RewriteCl  
     assAliasSourceLocator.php(28): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                             
     #9                                                                                                                                                
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/AggregateSourceLocator.php(28): PHPStan\Reflection\BetterReflection\SourceLocator\RewriteClassAliasSourceLocator->locateIdentifier()        
     #10                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator  
     /Type/MemoizingSourceLocator.php(33): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()                      
     #11                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/Def  
     aultReflector.php(58): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()                                     
     #12                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/Reflector/MemoizingRefl  
     ector.php(78): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectFunction()                                                             
     #13                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(279): PHPStan\Reflection\BetterReflection\Reflector\MemoizingReflector->reflectFunction()                                                   
     #14                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(336): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->PHPStan\Reflection\BetterReflection\{closure}()                         
     #15                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(277): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveName()                                                           
     #16                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/BetterReflectionProvide  
     r.php(221): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->resolveFunctionName()                                                   
     #17                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionPr  
     ovider.php(63): PHPStan\Reflection\BetterReflection\BetterReflectionProvider->hasFunction()                                                       
     #18 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(1492):                
     PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasFunction()                                                                  
     #19 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(561):                 
     PHPStan\Analyser\MutatingScope->resolveType()                                                                                                     
     #20 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(778):                 
     PHPStan\Analyser\MutatingScope->getType()                                                                                                         
     #21 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(561):                 
     PHPStan\Analyser\MutatingScope->resolveType()                                                                                                     
     #22 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(1391):            
     PHPStan\Analyser\MutatingScope->getType()                                                                                                         
     #23 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(528):             
     PHPStan\Analyser\NodeScopeResolver->findEarlyTerminatingExpr()                                                                                    
     #24 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #25 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(492):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #26 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #27 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(570):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #28 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(334):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #29 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(542):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNodes()                                                                                            
     #30 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(304):             
     PHPStan\Analyser\NodeScopeResolver->processStmtNode()                                                                                             
     #31 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(174):                  
     PHPStan\Analyser\NodeScopeResolver->processNodes()                                                                                                
     #32 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(147):                  
     PHPStan\Analyser\FileAnalyser->analyseFile()                                                                                                      
     #33                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): PHPStan\Command\WorkerCommand->PHPStan\Command\{closure}()                                                                           
     #34 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/clue/ndjson-react/src/Decoder.php(110):       
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #35                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\Clue\React\NDJson\Decoder->handleData()                                                                           
     #36 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/Util.php(62):                
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #37                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/evenement/evenement/src/Evenement/EventEmitterTr  
     ait.php(97): _PHPStan_52b7bec27\React\Stream\Util::_PHPStan_52b7bec27\React\Stream\{closure}()                                                    
     #38                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/stream/src/DuplexResourceStream.php(154):   
     _PHPStan_52b7bec27\Evenement\EventEmitter->emit()                                                                                                 
     #39                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(201):   
     _PHPStan_52b7bec27\React\Stream\DuplexResourceStream->handleData()                                                                                
     #40                                                                                                                                               
     phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/react/event-loop/src/StreamSelectLoop.php(173):   
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->waitForStreamActivity()                                                                      
     #41 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/src/Command/WorkerCommand.php(107):                  
     _PHPStan_52b7bec27\React\EventLoop\StreamSelectLoop->run()                                                                                        
     #42 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Command/Command.php(259):     
     PHPStan\Command\WorkerCommand->execute()                                                                                                          
     #43 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(865):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Command\Command->run()                                                                               
     #44 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(259):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRunCommand()                                                                          
     #45 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(157):         
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->doRun()                                                                                 
     #46 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(124):                                    
     _PHPStan_52b7bec27\Symfony\Component\Console\Application->run()                                                                                   
     #47 phar:///home/...<project>/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(125): _PHPStan_52b7bec27\{closure}()     
     #48 /home/...<project>/vendor/phpstan/phpstan/phpstan(8): require('...')                                               
     #49 {main}                                                                                                                                        
     Child process error (exit code 1):                                                                                                                
     Child process error (exit code 1):                                                                                                                
     Child process error (exit code 1):                                                                                                                
 -- -------------------------------------------------------------------------------------------------------------------------------------------------- 
@mergeable mergeable bot closed this as completed Sep 19, 2022
@mergeable
Copy link

mergeable bot commented Sep 19, 2022

Hi there! 👋

Looks like you opened an issue without following one of the issue templates:

Bug report 🐛 (open an issue)

If something isn't working as expected 🤔.

Feature request 🚀 (open an issue)

I have a suggestion (and may want to implement it 🙂)!

Support question (open a discussion)

I need some help with my code because PHPStan doesn't like it.


The current issue will be closed. This is a precaution to save maintainer's time, I hope you'll understand.

Sincerely, the bot 🤖

@ondrejmirtes
Copy link
Member

ondrejmirtes commented Sep 22, 2022

I attempted to fix this with phpstan/phpstan-src@ec28678, but I can't verify it since I don't have a bug reproduction from you. Please report back if it helps.

@github-actions
Copy link

github-actions bot commented Oct 24, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants