This thread might help you
https://laracasts.com/discuss/channels/code-review/laravel-valet-broken-after-upgrading-to-php-74
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i needed tot downgrade my php version from 8.0 to 7.2 for a project and now i cant go back, i tried with brew reinstall php and link and unlink and link etc nothing worked and now when i try to php -v i get the following error:
dyld[13450]: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.5.0.dylib Referenced from: /usr/local/Cellar/[email protected]/7.2.34_4/bin/php Reason: tried: '/usr/local/opt/openldap/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/lib/libldap-2.5.0.dylib' (no such file), '/usr/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/Cellar/openldap/2.6.0/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/lib/libldap-2.5.0.dylib' (no such file), '/usr/lib/libldap-2.5.0.dylib' (no such file) zsh: abort php -v
Please or to participate in this conversation.