Hello @jojordani,
in order to dig a little deeper, could you be so kind and share some details of your setup? Which macOS Version, which Alfred version, what PHP are you using (bundled Apple version or homebrew manual installation (latter case: which version), what API are you using?
Please also share Alfred debug output, in Alfred 5 you can reach it by pressing CMD+D key, when you are viewing this workflow in Alfred preferences.
Thanks