dyld: Library not loaded: /opt/homebrew/opt/openldap/lib/libldap-2.4.2.dylib code example
Example: dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
brew reinstall php@<link-version>
brew reinstall php@<link-version>