szepeviktor / phpstan-wordpress

WordPress extensions for PHPStan ⛏️
https://packagist.org/packages/szepeviktor/phpstan-wordpress
MIT License
267 stars 26 forks source link

Increase the memory limit during unit tests #129

Closed johnbillion closed 1 year ago

johnbillion commented 1 year ago

Running composer test:phpunit locally results in an out of memory error hidden behind the mysterious 255 error code from PHPUnit. This fixes that by bumping the limit to 1G.

Yes the underlying memory usage should be fixed, no I don't have time to look into it at the moment.

cc @swissspidy

szepeviktor commented 1 year ago

Thank you for this PR.

Developer environment settings could be in another project, it is normal. 😢 I'd like to keep this project clean from environment stuff.

Please set up your environment on your machine.

szepeviktor commented 1 year ago

The default value in Debian for memory_limit on CLI is -1 (unlimited).