title: Composer does not see the right php version
body: <p>For context: I created a Laravel 9 application on My windows operator. I have tried literally everything imaginable, ignore platform reqs, reinstall composer, get the newest PHP version, change environment variables, just to name a few. But no success. Every time I run the application (using homestead) I get the same error message:</p>
  <p><code>Composer detected issues in your platform: Your Composer dependencies require a PHP version &quot;&gt;= 8.1.0&quot;. You are running 8.0.11.</code></p>
  <p>Now here is the interesting part, upon checking PHP version in the terminal using <code>php -v</code> I get the version that I am actually using (rather than what composer is saying: &quot;8.0.11&quot;):</p>
  <p><code> PHP 8.1.8 Copyright (c) The PHP Group Zend Engine v4.1.8, Copyright (c) Zend Technologies</code></p>
  <p>Can someone please help me with this issue? I have seriously been trying for more than a few weeks just to fix this. And it's getting on my nerves as it always happens every time I start a new Laravel application.</p>