WP CLI errors, "Failed loading ... opcache.so" "xdebug.so" and "Warning: PHP Startup: Unable to load dynamic library ... imagick.so" code unsigned

@ipstenu I found that if I did the following

[stuff deleted]

I think what may be safer would be to add

/opt/homebrew/bin
/opt/homebrew/sbin

to /etc/paths

NB: The above seems to work without issues.