New world: single-pass expression processing through ExpressionResult callbacks #30498
static-analysis.yml
on: pull_request
Generate baseline
40s
Generate PHP baseline
34s
Matrix: PHPStan with result cache
Matrix: PHPStan
Annotations
67 errors, 14 warnings, and 7 notices
|
Generate PHP baseline
Process completed with exit code 2.
|
|
PHPStan with result cache (8.4)
Process completed with exit code 2.
|
|
PHPStan with result cache (8.4)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan with result cache (8.4)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.4, ubuntu-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\n * Cons...', Array, Array, Array, true)
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 /hom
|
|
PHPStan (8.4, ubuntu-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/StaticPropertyFetchHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Rules/FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Methods/ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::{closure:PHPStan\Analyser\NodeScopeResolver::processStmtNode():967}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::{closure:PHPStan\Analyser\Fiber\FiberNodeScopeResolver::callNodeCallback():51}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(O
|
|
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.3, ubuntu-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\n * Cons...', Array, Array, Array, true)
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 /hom
|
|
PHPStan (8.3, ubuntu-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/Virtual/UnsetOffsetExprHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Rules/FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Methods/ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(
|
|
Generate baseline
Process completed with exit code 2.
|
|
PHPStan with result cache (8.3)
Process completed with exit code 2.
|
|
PHPStan with result cache (8.3)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan with result cache (8.3)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan with result cache (8.5)
Process completed with exit code 2.
|
|
PHPStan with result cache (8.5)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan with result cache (8.5)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan (8.5, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.5, ubuntu-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\n * Cons...', Array, Array, Array, true)
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 /hom
|
|
PHPStan (8.5, ubuntu-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Rules/FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Methods/ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::{closure:PHPStan\Analyser\NodeScopeResolver::processStmtNode():967}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::{closure:PHPStan\Analyser\Fiber\FiberNodeScopeResolver::callNodeCallback():51}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpPar
|
|
PHPStan with result cache (8.2)
Process completed with exit code 2.
|
|
PHPStan with result cache (8.2)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan with result cache (8.2)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.2, ubuntu-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\n * Cons...', Array, Array, Array, true)
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 /hom
|
|
PHPStan (8.2, ubuntu-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 /home/runner/work/phpstan-src/phpstan-src/src/Rules/FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Methods/ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser
|
|
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 1.
|
|
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.1, ubuntu-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/build/stubs/PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType()
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues()
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(885): PHPStan\Analyser\MutatingScope->enterClassMethod()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers()
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal()
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#7 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers()
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal()
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#10 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(120): PHPStan\Analyser\NodeScopeResolver->processNodes()
#11 /home/runner/work/phpstan-src/phpstan-src/src/PhpDoc/StubValidator.php(76): PHPStan\Analyser\FileAnalyser->analyseFile()
#12 /home/runner/work/phpstan-src/phpstan-src/src/Command/AnalyseApplication.php(110): PHPStan\PhpDoc\StubValidator->validate()
#13 /home/runner/work/phpstan-src/phpstan-src/src/Command/AnalyseCommand.php(345): PHPStan\Command\AnalyseApplication->analyse()
#14 /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/console/Command/Command.php(298): PHPStan\Command\AnalyseCommand->execute()
#15 /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#16 /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#17 /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#18 /home/runner/work/phpstan-src/phpstan-src/bin/phpstan(139): Symfony\Component\Console\Application->run()
#19 /home/runner/work/phpstan-src/phpstan-src/bin/phpstan(140): {closure}()
#20 {main}
|
|
PHPStan (8.1, ubuntu-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExprHandler/ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(933)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType()
#1 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope()
#2 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope()
#4 /home/runner/work/phpstan-src/phpstan-src/src/Rules/FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType()
#5 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Methods/ReturnTypeRule.php(91): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType()
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode()
#7 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke()
#8 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke()
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}()
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(155): Fiber->resume()
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/Fiber/FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr()
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult()
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode()
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#16 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers()
#17 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1006): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal()
#18 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#19 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers()
#20 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal()
#21 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#22 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers()
#23 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal()
#24 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(3
|
|
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.2, windows-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\build\stubs\PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\r\n * Con...', Array, Array, Array, true)
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 D:\a\phpstan-src\phpstan-src\src\PhpDoc\StubValidator.php(70): PHPStan\Analyser\FileAnalyser->analyseFile('D:\\a\\phpstan-sr...', Array, Object(PHPStan\Rules\DirectRegistry
|
|
PHPStan (8.2, windows-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\src\Analyser\ExprHandler\ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 D:\a\phpstan-src\phpstan-src\src\Rules\FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 D:\a\phpstan-src\phpstan-src\src\Rules\Methods\ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 D:\a\phpstan-src\phpstan-src\src\Node\ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\StatementContext))
#16 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal
|
|
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.4, windows-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\build\stubs\PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\r\n * Con...', Array, Array, Array, true)
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 D:\a\phpstan-src\phpstan-src\src\PhpDoc\StubValidator.php(70): PHPStan\Analyser\FileAnalyser->analyseFile('D:\\a\\phpstan-sr...', Array, Object(PHPStan\Rules\DirectRegistry
|
|
PHPStan (8.4, windows-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\src\Analyser\ExprHandler\ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 D:\a\phpstan-src\phpstan-src\src\Rules\FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 D:\a\phpstan-src\phpstan-src\src\Rules\Methods\ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 D:\a\phpstan-src\phpstan-src\src\Node\ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::{closure:PHPStan\Analyser\NodeScopeResolver::processStmtNode():967}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::{closure:PHPStan\Analyser\Fiber\FiberNodeScopeResolver::callNodeCallback():51}()
#11 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\StatementContext))
#16 D:\a\phpstan-src\phpstan-src\src\Analyser\N
|
|
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.3, windows-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\build\stubs\PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\r\n * Con...', Array, Array, Array, true)
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 D:\a\phpstan-src\phpstan-src\src\PhpDoc\StubValidator.php(70): PHPStan\Analyser\FileAnalyser->analyseFile('D:\\a\\phpstan-sr...', Array, Object(PHPStan\Rules\DirectRegistry
|
|
PHPStan (8.3, windows-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\src\Analyser\ExprHandler\Virtual\UnsetOffsetExprHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 D:\a\phpstan-src\phpstan-src\src\Rules\FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 D:\a\phpstan-src\phpstan-src\src\Rules\Methods\ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 D:\a\phpstan-src\phpstan-src\src\Node\ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\StatementContext))
#16 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processS
|
|
PHPStan (8.5, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.5, windows-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\build\stubs\PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(884): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\r\n * Con...', Array, Array, Array, true)
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(524): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyser.php(119): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 D:\a\phpstan-src\phpstan-src\src\PhpDoc\StubValidator.php(70): PHPStan\Analyser\FileAnalyser->analyseFile('D:\\a\\phpstan-sr...', Array, Object(PHPStan\Rules\DirectRegistry
|
|
PHPStan (8.5, windows-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\src\Analyser\ExprHandler\ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 D:\a\phpstan-src\phpstan-src\src\Rules\FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 D:\a\phpstan-src\phpstan-src\src\Rules\Methods\ReturnTypeRule.php(70): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 D:\a\phpstan-src\phpstan-src\src\Node\ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::{closure:PHPStan\Analyser\NodeScopeResolver::processStmtNode():967}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::{closure:PHPStan\Analyser\Fiber\FiberNodeScopeResolver::callNodeCallback():51}()
#11 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(581): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\StatementContext))
#16 D:\a\phpstan-src\phpstan-src\src\Analyser\N
|
|
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 1.
|
|
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (8.0, ubuntu-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Node/Printer/ExprPrinter.php on line 29
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Node/Printer/ExprPrinter.php on line 29
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
while running parallel worker
|
|
PHPStan (8.0, ubuntu-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php on line 2931
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php on line 2931
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/string/UnicodeString.php on line 1
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/string/UnicodeString.php on line 1
while running parallel worker
|
|
PHPStan (8.0, ubuntu-latest)
Child process error: PHPStan process crashed because it reached configured PHP memory limit: 599M
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
while running parallel worker
|
|
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 1.
|
|
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
|
|
PHPStan (7.4, ubuntu-latest)
Child process error (exit code 255): while running parallel worker
|
|
PHPStan (7.4, ubuntu-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php on line 1410
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php on line 1410
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/polyfill-php80/bootstrap.php on line 29
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in /home/runner/work/phpstan-src/phpstan-src/vendor/symfony/polyfill-php80/bootstrap.php on line 29
while running parallel worker
|
|
PHPStan (7.4, ubuntu-latest)
Child process error: PHPStan process crashed because it reached configured PHP memory limit: 599M
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
while running parallel worker
|
|
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.1, windows-latest)
Internal error: Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\build\stubs\PhpParserName.stub
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1718): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Array_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(1566): PHPStan\Analyser\MutatingScope->getRealParameterDefaultValues(Object(PhpParser\Node\Stmt\ClassMethod))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(885): PHPStan\Analyser\MutatingScope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Type\Generic\TemplateTypeMap), Array, NULL, NULL, NULL, false, false, false, NULL, true, Object(PHPStan\Reflection\Assertions), NULL, '/**\r\n * Con...', Array, Array, Array, true)
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\ClassMethod), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#4 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#5 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1234): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Class_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Node\ClassStatementsGatherer), Object(PHPStan\Analyser\StatementContext))
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Class_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#7 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternalWithoutFlushingPendingFibers(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1182): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal(Object(PhpParser\Node\Stmt\Namespace_), Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(314): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Namespace_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(PHPStan\Analyser\FileAnalyserCallback), Object(PHPStan\Analyser\StatementContext))
#10 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyser.php(120): PHPStan\Analyser\NodeScopeResolver->processNodes(Array, Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\FileAnalyserCallback))
#11 D:\a\phpstan-src\phpstan-src\src\PhpDoc\StubValidator.php(76): PHPStan\Analyser\FileAnalyser->analyseFile('D:\\a\\phpstan-sr...', Array, Object(PHPStan\Rules\DirectRegistry
|
|
PHPStan (8.1, windows-latest)
Internal error: Scope::getType() should not be used here. Either FiberScope::getType() will be used (by extensions), or ExpressionResult::getType() (by Analyser engine in NodeScopeResolver-adjacent and TypeSpecifier-adjacent code. while analysing file D:\a\phpstan-src\phpstan-src\src\Analyser\ExprHandler\ClosureHandler.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php(933)
#0 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(237): PHPStan\Analyser\MutatingScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#1 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(111): PHPStan\Analyser\ExpressionResult->getTypeByScope(Object(PHPStan\Analyser\MutatingScope))
#2 D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResult.php(153): PHPStan\Analyser\ExpressionResult->getType()
#3 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberScope.php(89): PHPStan\Analyser\ExpressionResult->getTypeForScope(Object(PHPStan\Analyser\Fiber\FiberScope))
#4 D:\a\phpstan-src\phpstan-src\src\Rules\FunctionReturnTypeCheck.php(80): PHPStan\Analyser\Fiber\FiberScope->getType(Object(PhpParser\Node\Expr\Instanceof_))
#5 D:\a\phpstan-src\phpstan-src\src\Rules\Methods\ReturnTypeRule.php(91): PHPStan\Rules\FunctionReturnTypeCheck->checkReturnType(Object(PHPStan\Analyser\Fiber\FiberScope), Object(PHPStan\Type\BooleanType), Object(PhpParser\Node\Expr\Instanceof_), Object(PhpParser\Node\Stmt\Return_), 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', 'Method PHPStan\\...', false)
#6 D:\a\phpstan-src\phpstan-src\src\Analyser\FileAnalyserCallback.php(125): PHPStan\Rules\Methods\ReturnTypeRule->processNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#7 D:\a\phpstan-src\phpstan-src\src\Node\ClassStatementsGatherer.php(144): PHPStan\Analyser\FileAnalyserCallback->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#8 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(968): PHPStan\Node\ClassStatementsGatherer->__invoke(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#9 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(53): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\Fiber\FiberScope))
#10 [internal function]: PHPStan\Analyser\Fiber\FiberNodeScopeResolver::PHPStan\Analyser\Fiber\{closure}()
#11 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(155): Fiber->resume(Object(PHPStan\Analyser\ExpressionResult))
#12 D:\a\phpstan-src\phpstan-src\src\Analyser\Fiber\FiberNodeScopeResolver.php(65): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->processPendingFibersForRequestedExpr(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#13 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(2784): PHPStan\Analyser\Fiber\FiberNodeScopeResolver->storeResult(Object(PHPStan\Analyser\ExpressionResultStorage), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\ExpressionResult))
#14 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(1081): PHPStan\Analyser\NodeScopeResolver->processExprNode(Object(PhpParser\Node\Stmt\Return_), Object(PhpParser\Node\Expr\Instanceof_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\ExpressionContext))
#15 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(582): PHPStan\Analyser\NodeScopeResolver->processStmtNode(Object(PhpParser\Node\Stmt\Return_), Object(PHPStan\Analyser\MutatingScope), Object(PHPStan\Analyser\ExpressionResultStorage), Object(Closure), Object(PHPStan\Analyser\StatementContext))
#16 D:\a\phpstan-src\phpstan-src\src\Analyser\NodeScopeResolver.php(525): PHPStan\Analyser\NodeScopeResolver->processStmtNodesInternal
|
|
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (8.0, windows-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\AbstractString.php on line 319
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\AbstractString.php on line 319
while running parallel worker
|
|
PHPStan (8.0, windows-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 81920 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 81920 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 242
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 242
while running parallel worker
|
|
PHPStan (8.0, windows-latest)
Child process error: PHPStan process crashed because it reached configured PHP memory limit: 599M
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
while running parallel worker
|
|
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
|
|
PHPStan (7.4, windows-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 40960 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 40960 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 1
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 1
while running parallel worker
|
|
PHPStan (7.4, windows-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 20480 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\ExpressionResultStorage.php on line 40
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 1
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 32768 bytes) in D:\a\phpstan-src\phpstan-src\vendor\symfony\string\UnicodeString.php on line 1
while running parallel worker
|
|
PHPStan (7.4, windows-latest)
Child process error: PHPStan process crashed because it reached configured PHP memory limit: 599M
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
while running parallel worker
|
|
PHPStan (7.4, windows-latest)
Child process error (exit code 255): PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php on line 3722
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in D:\a\phpstan-src\phpstan-src\src\Analyser\MutatingScope.php on line 3722
PHP Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php on line 134
Fatal error: Allowed memory size of 628097024 bytes exhausted (tried to allocate 262144 bytes) in D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php on line 134
while running parallel worker
|
|
PHPStan (8.4, ubuntu-latest)
No files were found with the provided path: baseline-php-8.4.neon. No artifacts will be uploaded.
|
|
PHPStan (8.3, ubuntu-latest)
No files were found with the provided path: baseline-php-8.3.neon. No artifacts will be uploaded.
|
|
PHPStan (8.5, ubuntu-latest)
No files were found with the provided path: baseline-php-8.5.neon. No artifacts will be uploaded.
|
|
PHPStan (8.2, ubuntu-latest)
No files were found with the provided path: baseline-php-8.2.neon. No artifacts will be uploaded.
|
|
PHPStan (8.1, ubuntu-latest)
No files were found with the provided path: baseline-php-8.1.neon. No artifacts will be uploaded.
|
|
PHPStan (8.2, windows-latest)
No files were found with the provided path: baseline-php-8.2.neon. No artifacts will be uploaded.
|
|
PHPStan (8.4, windows-latest)
No files were found with the provided path: baseline-php-8.4.neon. No artifacts will be uploaded.
|
|
PHPStan (8.3, windows-latest)
No files were found with the provided path: baseline-php-8.3.neon. No artifacts will be uploaded.
|
|
PHPStan (8.5, windows-latest)
No files were found with the provided path: baseline-php-8.5.neon. No artifacts will be uploaded.
|
|
PHPStan (8.0, ubuntu-latest)
No files were found with the provided path: baseline-php-8.0.neon. No artifacts will be uploaded.
|
|
PHPStan (7.4, ubuntu-latest)
No files were found with the provided path: baseline-php-7.4.neon. No artifacts will be uploaded.
|
|
PHPStan (8.1, windows-latest)
No files were found with the provided path: baseline-php-8.1.neon. No artifacts will be uploaded.
|
|
PHPStan (8.0, windows-latest)
No files were found with the provided path: baseline-php-8.0.neon. No artifacts will be uploaded.
|
|
PHPStan (7.4, windows-latest)
No files were found with the provided path: baseline-php-7.4.neon. No artifacts will be uploaded.
|
|
PHPStan (8.2, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (8.4, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (8.3, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (8.5, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (8.1, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (8.0, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|
|
PHPStan (7.4, windows-latest)
NOTICE: windows-latest requests are being redirected to windows-2025-vs2026 by June 15, 2026
|