mediact / testing-suite

Collection of PHP code testing packages.
MIT License
14 stars 4 forks source link

Incompatible with PHP 8.1 + Composer 2.4.4 #74

Closed celorodovalho closed 2 years ago

celorodovalho commented 2 years ago

If I remove all the scripts in composer.json file:

 composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
123 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Patched the PhpStorm config
Requiring package elgentos/laravel-coding-standard
./composer.json has been updated
Running composer update elgentos/laravel-coding-standard
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mediact/coding-standard[3.0.0, ..., 3.0.2] require php ^5.4.0 || ^7.0 -> your php version (8.1.3) does not satisfy that requirement.
    - mediact/coding-standard[3.1.0, ..., 3.2.0] require php ^7.0 -> your php version (8.1.3) does not satisfy that requirement.
    - elgentos/laravel-coding-standard 1.0.0 requires mediact/coding-standard ^3.0 -> satisfiable by mediact/coding-standard[3.0.0, ..., 3.2.0].
    - Root composer.json requires elgentos/laravel-coding-standard ^1.0.0 -> satisfiable by elgentos/laravel-coding-standard[1.0.0].

If I keep it as is:

 composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  barryvdh/laravel-dompdf ..................................................................................................................... DONE
  bensampo/laravel-enum ....................................................................................................................... DONE
  fideloper/proxy ............................................................................................................................. DONE
  fruitcake/laravel-cors ...................................................................................................................... DONE
  laravel/passport ............................................................................................................................ DONE
  laravel/sail ................................................................................................................................ DONE
  laravel/sanctum ............................................................................................................................. DONE
  laravel/tinker .............................................................................................................................. DONE
  laravellegends/pt-br-validator .............................................................................................................. DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/collision ........................................................................................................................ DONE
  nunomaduro/termwind ......................................................................................................................... DONE
  prettus/l5-repository ....................................................................................................................... DONE
  spatie/laravel-fractal ...................................................................................................................... DONE
  spatie/laravel-ignition ..................................................................................................................... DONE

123 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Patched the PhpStorm config
Requiring package elgentos/laravel-coding-standard
PHP Fatal error:  Declaration of Symfony\Component\Console\Input\ArrayInput::hasParameterOption(array|string $values, bool $onlyParams = false): bool must be compatible with Symfony\Component\Console\Input\InputInterface::hasParameterOption($values, bool $onlyParams = false) in /var/www/html/api/vendor/symfony/console/Input/ArrayInput.php on line 56

Fatal error: Declaration of Symfony\Component\Console\Input\ArrayInput::hasParameterOption(array|string $values, bool $onlyParams = false): bool must be compatible with Symfony\Component\Console\Input\InputInterface::hasParameterOption($values, bool $onlyParams = false) in /var/www/html/api/vendor/symfony/console/Input/ArrayInput.php on line 56

I know this is related to this issue: https://github.com/composer/composer/issues/8907

But maybe there's a way to avoid it @leonhelmus?