WAMP php version is not recognized – composer error

I run Laravel 9 on Windows 10.

Everything worked find until installed this package:
https://spatie.be/docs/laravel-livewire-wizard/v1/introduction

and now I get this error in the browser when trying to browse my site:
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”. You are running 8.0.13. in C:wamp64wwwhighland9.localvendorcomposerplatform_check.php on line 24

After googling it I check all of these:

php version on Wamp shows 8.1.0

phpinfo() shows 8.1.0

localhost in the browser shows php version 8.1.0

Windows path points to: c:wamp64binphp8.1.0

cmd php -v shows: 8.1.0

In my composer.json file:

it was:

"require": {
        "php": "^8.0.2",

I changed it to:

"php":"^8.1.0"

and ran composer update

I tried removing the package like this:

composer remove vendor/spatie/laravel-livewire-wizard

It said there’s nothing to remove.

I renamed the folder to laravel-livewire-wizardDEL

I removed the line:

“spatie/laravel-livewire-wizard”: “^1.1”,

from composer.json and ran composer update

Nothing helps, still get this error.

Can someone please help?