Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Reinis.lucis's avatar

PHP CS fixer allowed memory exhausted

Hey, I'm using Github workflow action to check and fix code using php-cs fixer. Here is the config for the file. The issue is that on Github, when running this action it shows

PHP CS Fixer 3.2.1 Mountains by Fabien Potencier and Dariusz Ruminski (13ae36a)
Loaded config default from ".php-cs-fixer.dist.php".

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16777224 bytes) in  on line 49155

Any tips on how could this be fixed? Also the .php-cs-fixer.cache is being ignored, which might fix this, but then it would be updated on each push

0 likes
0 replies

Please or to participate in this conversation.