Skip to content

Launch phpstan without memory limit? #24

@roukmoute

Description

@roukmoute

Hi!

In CircleCI I've got this:

./vendor/bin/phpstan analyse src

 298/335 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░]  88%
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /home/ubuntu/shippeo.sf/vendor/phpstan/phpstan/src/Reflection/Php/PhpMethodReflection.php on line 158

./vendor/bin/phpstan analyse src returned exit code 255

So I must launch differently with:

php -d memory_limit=-1 ./vendor/bin/phpstan analyse src

 335/335 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

                                                                                
 [OK] No errors                                                                 
                                                                                

 ! [NOTE] PHPStan is performing only the most basic checks. You can pass a      
 !        higher rule level through the --level option (the default and current 
 !        level is 0) to analyse code more thoroughly.           

What do you think to increase/bypass memory limit?

Thanks

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