Difference between Instance and Static properties #22584
e2e-tests.yml
on: pull_request
Matrix: E2E tests
Matrix: Result cache E2E tests
Annotations
6 errors
Result cache E2E tests (cd e2e/ignore-error-extension
composer install
../../bin/phpstan
)
Process completed with exit code 1.
|
Result cache E2E tests (cd e2e/ignore-error-extension
composer install
../../bin/phpstan
)
Internal error: Call to undefined method PHPStan\Reflection\ClassReflection::allowsDynamicPropertiesExtensions() while analysing file /home/runner/work/phpstan-src/phpstan-src/e2e/ignore-error-extension/src/ClassCollector.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
Result cache E2E tests (cd e2e/result-cache-6
echo -n > phpstan-baseline.neon
../../bin/phpstan -...
Process completed with exit code 1.
|
Result cache E2E tests (cd e2e/result-cache-6
echo -n > phpstan-baseline.neon
../../bin/phpstan -...
Internal error: Call to undefined method PHPStan\Reflection\ClassReflection::allowsDynamicPropertiesExtensions() while analysing file /home/runner/work/phpstan-src/phpstan-src/e2e/result-cache-6/src/Foo.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/Reflection/ClassReflection.php(509)
#0 /home/runner/work/phpstan-src/phpstan-src/src/Type/ObjectType.php(264): PHPStan\Reflection\ClassReflection->hasInstanceProperty()
#1 /home/runner/work/phpstan-src/phpstan-src/src/Type/RecursionGuard.php(27): PHPStan\Type\ObjectType::PHPStan\Type\{closure}()
#2 /home/runner/work/phpstan-src/phpstan-src/src/Type/ObjectType.php(264): PHPStan\Type\RecursionGuard::run()
#3 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(6182): PHPStan\Type\ObjectType->hasInstanceProperty()
#4 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(6208): PHPStan\Analyser\MutatingScope->getInstancePropertyReflection()
#5 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(2262): PHPStan\Analyser\MutatingScope->propertyFetchType()
#6 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/MutatingScope.php(789): PHPStan\Analyser\MutatingScope->resolveType()
#7 /home/runner/work/phpstan-src/phpstan-src/src/Rules/RuleLevelHelper.php(178): PHPStan\Analyser\MutatingScope->getType()
#8 /home/runner/work/phpstan-src/phpstan-src/src/Rules/Cast/EchoRule.php(37): PHPStan\Rules\RuleLevelHelper->findTypeToCheck()
#9 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(131): PHPStan\Rules\Cast\EchoRule->processNode()
#10 /home/runner/work/phpstan-src/phpstan-src/src/Node/ClassStatementsGatherer.php(140): PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()
#11 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(756): PHPStan\Node\ClassStatementsGatherer->__invoke()
#12 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(528): PHPStan\Analyser\NodeScopeResolver::PHPStan\Analyser\{closure}()
#13 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(406): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#14 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(755): PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#15 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(406): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#16 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(1001): PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#17 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(406): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#18 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(947): PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#19 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/NodeScopeResolver.php(336): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#20 /home/runner/work/phpstan-src/phpstan-src/src/Analyser/FileAnalyser.php(247): PHPStan\Analyser\NodeScopeResolver->processNodes()
#21 /home/runner/work/phpstan-src/phpstan-src/src/Command/WorkerCommand.php(236): PHPStan\Analyser\FileAnalyser->analyseFile()
#22 /home/runner/work/phpstan-src/phpstan-src/vendor/evenement/evenement/src/EventEmitterTrait.php(143): PHPStan\Command\WorkerCommand::PHPStan\Command\{closure}()
#23 /home/runner/work/phpstan-src/phpstan-src/vendor/clue/ndjson-react/src/Decoder.php(139): Evenement\EventEmitter->emit()
#24 /home/runner/work/phpstan-src/phpstan-src/vendor/evenement/evenement/src/EventEmitterTrait.php(143): Clue\React\NDJson\Decoder->handleData()
#25 /home/runner/work/phpstan-src/phpstan-src/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit()
#26 /home/runner/work/phpstan-src/phpstan-src/vendor/evenement/evenement/src/EventEmitterTrait.php(143): React\Stream\Util::React\Stream\{closure}()
#27 /home/runner/work/phpst
|
E2E tests (cd e2e/bug13425
timeout 15 ../bashunit -a exit_code "1" "../../bin/phpstan analyze src...
Internal error: Call to undefined method PHPStan\Reflection\ClassReflection::allowsDynamicPropertiesExtensions() while analysing file /home/runner/work/phpstan-src/phpstan-src/e2e/bug13425/plugins/oepnvMobilePlugin/lib/mobileService/MobileServiceApi.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
Result cache E2E tests (cd e2e/bug-11826
composer install
OUTPUT=$(../bashunit -a exit_code "1" "...
Child process error (exit code 255): PHP Fatal error: A class constant must not be called 'class'; it is reserved for class name fetching in /home/runner/work/phpstan-src/phpstan-src/e2e/bug-11826/src/FatalErrorWhenAutoloaded.php on line 9
Fatal error: A class constant must not be called 'class'; it is reserved for class name fetching in /home/runner/work/phpstan-src/phpstan-src/e2e/bug-11826/src/FatalErrorWhenAutoloaded.php on line 9
while running parallel worker
|