Skip to content

Allowed memory size of 268435456 bytes exhausted #4026

@arron0

Description

@arron0

I'm getting this error after upgrade from v0.11 to v0.12.52

 -- ---------------------------------------------------------------------------
     Error
 -- ---------------------------------------------------------------------------
     Child process error (exit code 255): PHP Fatal error:  Allowed memory
     size of 268435456 bytes exhausted (tried to allocate 8192 bytes) in
     phar:///var/www/html/vendor/phpstan/phpstan/phpstan/src/Type/TypeCombinat
     or.php on line 307
     Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to
     allocate 8192 bytes) in
     phar:///var/www/html/vendor/phpstan/phpstan/phpstan/src/Type/TypeCombinat
     or.php on line 307

 -- ---------------------------------------------------------------------------

When I raise memory allowance to 512M it is the same.
Looks like it is something in my code, on other project, it is working fine.

Can you help me a little bit please? It may be some bug, but I'm not sure. Also it's difficult to have some minimul code which would raise this error...

PHP: 7.3
PhpStan: 0.12.52
Phpstan-Nette: 0.12.9
level: max

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions