Update versions
Update the illumiante/collections requirements to the supported PHP versions, see the following table:
| Laravel/Illuminate | composer.json | Docs | EOL in Docs |
|---|---|---|---|
| v11 | ^8.2 | 8.2 - 8.4 | 12th March 2026 |
| v10 | ^8.1 | 8.1 - 8.3 | 4th Feb 2025 |
| v9 | ^8.0.2 | 8.0 - 8.2 | 6th Feb 2024 |
| v8 | ^7.3 or ^8.0 | 7.3 - 8.1 | 24th Jan 2023 |
| v7 | - | 7.2 - 8.0 | 3rd Mar 2021 |
Furthermore I think illuminate/collections doesn't exist before v8: see https://packagist.org/packages/illuminate/collections So I am not even sure, what would be installed here.
Guzzle ^7.0.1 is required as of laravel/illuminate 8.
phpunit ^9.5 is required as of laravel/illuminate 8.
See https://github.com/laravel/laravel/blob/8.x/composer.json
PHPstan 2 can be used as of PHP 7.4. See https://github.com/phpstan/phpstan/blob/2.0.x/composer.json
ext-json is always included as of PHP 8.0 and was therefor removed as a requirement. See https://php.watch/versions/8.0/ext-json
Another note:
I needed to add /* @phpstan-ignore class.extendsFinalByPhpDoc */ to the GuzzleClient, because it extends the class client which has a phpdoc with @final meaning it should not be extended from. In my opinion should this be refactored in another PR.