If I run php -ini I get:
Configuration File (php.ini) Path => /usr/local/etc/php/7.4
Loaded Configuration File => /usr/local/etc/php/7.4/php.ini
If I run phpinfo() (I use Laravel Valet to serve my app locally) I get:
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File: /usr/local/etc/php/7.4/php.ini
So they're the same. I then run sudo nano /usr/local/etc/php/7.4/php.ini and update memory_limit to 2048M.
Then I run: php -ini: the new memory_limit is updated to the new value. But if I run phpinfo() it still says 128M. Even after brew services restart php@7.4 and valet restart.
This is driving me crazy, what am I missing?