Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error launching analize #5544

Closed
igads opened this issue Aug 27, 2021 · 2 comments
Closed

Error launching analize #5544

igads opened this issue Aug 27, 2021 · 2 comments

Comments

@igads
Copy link

igads commented Aug 27, 2021

❯ vendor/bin/phpstan --debug
Note: Using configuration file /home/desktop-ubuntu/www/feeds/phpstan.neon.
/home/desktop-ubuntu/www/feeds/src/Shared/Token/Application/Error/InvalidToken.php
/home/desktop-ubuntu/www/feeds/src/Shared/Token/Application/TokenValidator.php
/home/desktop-ubuntu/www/feeds/src/Shared/Events/DomainEventListener.php
/home/desktop-ubuntu/www/feeds/src/Shared/Events/HandlerBuilder.php
/home/desktop-ubuntu/www/feeds/src/Shared/Events/DomainEventSubscriber.php
/home/desktop-ubuntu/www/feeds/src/Shared/Events/ListenerBuilder.php
/home/desktop-ubuntu/www/feeds/src/Shared/Events/DomainEvent.php
Uncaught PHPStan\ShouldNotHappenException: Unknown unserialize() error in phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php:135
#0 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(98): PHPStan\Type\FileTypeMapper->resolvePhpDocStringToDocNode()
#1 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(93): PHPStan\Type\FileTypeMapper->createResolvedPhpDocBlock()
#2 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(297): PHPStan\Type\FileTypeMapper->getResolvedPhpDoc()
#3 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(276): PHPStan\Type\FileTypeMapper->PHPStan\Type\{closure}()
#4 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(187): PHPStan\Type\FileTypeMapper::PHPStan\Type\{closure}()
#5 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(168): PHPStan\Type\FileTypeMapper->createResolvedPhpDocMap()
#6 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(75): PHPStan\Type\FileTypeMapper->getResolvedPhpDocMap()
#7 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(852): PHPStan\Type\FileTypeMapper->getResolvedPhpDoc()
#8 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(882): PHPStan\Reflection\ClassReflection->getResolvedPhpDoc()
#9 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(795): PHPStan\Reflection\ClassReflection->getTemplateTags()
#10 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(361): PHPStan\Reflection\ClassReflection->isGeneric()
#11 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(187): PHPStan\Type\FileTypeMapper->PHPStan\Type\{closure}()
#12 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(168): PHPStan\Type\FileTypeMapper->createResolvedPhpDocMap()
#13 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Type/FileTypeMapper.php(75): PHPStan\Type\FileTypeMapper->getResolvedPhpDocMap()
#14 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(852): PHPStan\Type\FileTypeMapper->getResolvedPhpDoc()
#15 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(864): PHPStan\Reflection\ClassReflection->getResolvedPhpDoc()
#16 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(856): PHPStan\Reflection\ClassReflection->getExtendsTags()
#17 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(166): PHPStan\Reflection\ClassReflection->getFirstExtendsTag()
#18 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(591): PHPStan\Reflection\ClassReflection->getParentClass()
#19 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php(50): PHPStan\Reflection\ClassReflection->getParentClassesNames()
#20 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/ChainReflectionProvider.php(35): PHPStan\Reflection\ReflectionProvider\ClassBlacklistReflectionProvider->hasClass()
#21 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionProvider.php(39): PHPStan\Reflection\ReflectionProvider\ChainReflectionProvider->getClass()
#22 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(177): PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->getClass()
#23 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(591): PHPStan\Reflection\ClassReflection->getParentClass()
#24 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php(50): PHPStan\Reflection\ClassReflection->getParentClassesNames()
#25 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/ChainReflectionProvider.php(25): PHPStan\Reflection\ReflectionProvider\ClassBlacklistReflectionProvider->hasClass()
#26 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionProvider.php(31): PHPStan\Reflection\ReflectionProvider\ChainReflectionProvider->hasClass()
#27 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Rules/ClassCaseSensitivityCheck.php(28): PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider->hasClass()
#28 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Namespaces/ExistingNamesInUseRule.php(96): PHPStan\Rules\ClassCaseSensitivityCheck->checkClassNames()
#29 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Rules/Namespaces/ExistingNamesInUseRule.php(50): PHPStan\Rules\Namespaces\ExistingNamesInUseRule->checkClasses()
#30 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(69): PHPStan\Rules\Namespaces\ExistingNamesInUseRule->processNode()
#31 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(312): PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()
#32 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(254): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#33 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(469): PHPStan\Analyser\NodeScopeResolver->processStmtNodes()
#34 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolver.php(222): PHPStan\Analyser\NodeScopeResolver->processStmtNode()
#35 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php(149): PHPStan\Analyser\NodeScopeResolver->processNodes()
#36 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/Analyser.php(52): PHPStan\Analyser\FileAnalyser->analyseFile()
#37 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Command/AnalyserRunner.php(56): PHPStan\Analyser\Analyser->analyse()
#38 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Command/AnalyseApplication.php(148): PHPStan\Command\AnalyserRunner->runAnalyser()
#39 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Command/AnalyseApplication.php(79): PHPStan\Command\AnalyseApplication->runAnalyser()
#40 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/src/Command/AnalyseCommand.php(157): PHPStan\Command\AnalyseApplication->analyse()
#41 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Command/Command.php(228): PHPStan\Command\AnalyseCommand->execute()
#42 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(856): _PHPStan_8f2e45ccf\Symfony\Component\Console\Command\Command->run()
#43 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(237): _PHPStan_8f2e45ccf\Symfony\Component\Console\Application->doRunCommand()
#44 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/console/Application.php(138): _PHPStan_8f2e45ccf\Symfony\Component\Console\Application->doRun()
#45 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(82): _PHPStan_8f2e45ccf\Symfony\Component\Console\Application->run()
#46 phar:///home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan.phar/bin/phpstan(83): _PHPStan_8f2e45ccf\{closure}()
#47 /home/desktop-ubuntu/www/feeds/vendor/phpstan/phpstan/phpstan(8): require('...')
#48 {main}

@mergeable mergeable bot closed this as completed Aug 27, 2021
@mergeable
Copy link

mergeable bot commented Aug 27, 2021

Hi there! 👋

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

Bug report 🐛 (open an issue)

If something isn't working as expected 🤔.

Feature request 🚀 (open an issue)

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

Support question ❓ (open a discussion)

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


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

Sincerely, the bot 🤖

@github-actions
Copy link

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

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

No branches or pull requests

1 participant