title: deployer:env: php: No such file or directory
body: <p>I use deployer: <a href="https://github.com/deployphp/deployer" rel="nofollow noreferrer">https://github.com/deployphp/deployer</a> to deploy my php project, run the dep command in macos bigsur without any problem, but run the dep command in macos monterey will report an error: env: php: No such file or directory.</p>
  <p>My php is running in the docker container, the php command is the alias I created, in .zshrc:</p>
  <pre><code>php () {
      tty=
      tty -s &amp;&amp; tty=--tty
      docker run \
          $tty \
          --interactive \
          --rm \
          --volume $PWD:/www:rw \
          --workdir /www \
          dnmp_php php &quot;$@&quot;
  }
  </code></pre>
  <p>What is the possible reason please? Thanks for the answer!</p>