Ritu Singh
Problem:
I try to run phpstan(nunomaduro/larastan 2.6.3) under docker (based on php:8.1.6-apache) in laravel 10.8 app and got memory lack error.
I added memory limit in console command, but error anyway :
In virtualhost.conf of the docker project I got option :
If there is a way to fix it ?
Solution:
The virtualhost.conf value does not do anything because that's only for your webserver, but you're executing PHPStan from CLI (as you should).
Memory limit "1M" cannot be set because that's a much smaller value than the default (128M).
You can try running PHPStan with the same value you have for your webserver:
That should work.
Suggested blogs:
>How to route between different components in React.js?
>How to save Python YAML and load a nested class?-Python
>How to send multiple HTML form fields to PHP arrays via Ajax?
>How to Set up the Android Emulator
>How to Set up the local environment for Angular development?