Skip to content

Call to a member function resolveMixinTags() on null error #3238

@clxmstaab

Description

@clxmstaab

I am running into a fatal error with the latest 0.12.21 phpstan release

Bug report

> phpstan analyse -c phpstan.neon.dist  --no-progress --error-format=checkstyle --debug
PHP Warning:  Use of undefined constant ENCODING_CHARSET - assumed 'ENCODING_CHARSET' (this will throw an Error in a future version of PHP) in C:\Users\mstaab\Documents\GitHub\php-rocket\lib\RegexFormats.php on line 7
Warning: Use of undefined constant ENCODING_CHARSET - assumed 'ENCODING_CHARSET' (this will throw an Error in a future version of PHP) in C:\Users\mstaab\Documents\GitHub\php-rocket\lib\RegexFormats.php on line 7
C:\Users\mstaab\Documents\GitHub\php-rocket\builtin\Adm.php
C:\Users\mstaab\Documents\GitHub\php-rocket\builtin\Cms.php
C:\Users\mstaab\Documents\GitHub\php-rocket\builtin\CmsFrontend.php
C:\Users\mstaab\Documents\GitHub\php-rocket\builtin\controllers\AdmgrpController.php
PHP Fatal error:  Uncaught Error: Call to a member function resolveMixinTags() on null in phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php:248
Stack trace:
#0 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/ClassReflection.php(735): PHPStan\PhpDoc\ResolvedPhpDocBlock->getMixinTags()
#1 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/ClassReflection.php(743): PHPStan\Reflection\ClassReflection->getMixinTags()
#2 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/Mixin/MixinPropertiesClassReflectionExtension.php(26): PHPStan\Reflection\ClassReflection->getResolvedMixinTypes()
#3 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/Mixin/MixinPropertiesClassReflectionExtension.php(34): in phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php on line 248
Fatal error: Uncaught Error: Call to a member function resolveMixinTags() on null in phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php:248
Stack trace:
#0 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/ClassReflection.php(735): PHPStan\PhpDoc\ResolvedPhpDocBlock->getMixinTags()
#1 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/ClassReflection.php(743): PHPStan\Reflection\ClassReflection->getMixinTags()
#2 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/Mixin/MixinPropertiesClassReflectionExtension.php(26): PHPStan\Reflection\ClassReflection->getResolvedMixinTypes()
#3 phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/Reflection/Mixin/MixinPropertiesClassReflectionExtension.php(34): in phar://C:/Users/mstaab/Documents/GitHub/php-rocket/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php on line 248

we don't use the newly introduced @mixin feature though

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions