Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 #73

Closed
necrogami opened this issue Mar 1, 2021 · 2 comments
Closed

PHP 8 #73

necrogami opened this issue Mar 1, 2021 · 2 comments
Assignees

Comments

@necrogami
Copy link

Trying to do composer install with php8 fails.
PHP 7.4 only has 8 months of support left.

necrogami@DESKTOP-56L3JFH:/mnt/c/Users/necrogami/code/game$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires php ^7.2 but your php version (8.0.2) does not satisfy that requirement.
  Problem 2
    - composer/composer is locked to version 1.9.1 and an update of this package was not requested.
    - composer/composer 1.9.1 requires php ^5.3.2 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 3
    - composer/semver is locked to version 1.5.0 and an update of this package was not requested.
    - composer/semver 1.5.0 requires php ^5.3.2 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 4
    - doctrine/cache is locked to version 1.10.0 and an update of this package was not requested.
    - doctrine/cache 1.10.0 requires php ~7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 5
    - doctrine/dbal is locked to version v2.10.0 and an update of this package was not requested.
    - doctrine/dbal v2.10.0 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 6
    - doctrine/event-manager is locked to version 1.1.0 and an update of this package was not requested.
    - doctrine/event-manager 1.1.0 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 7
    - doctrine/inflector is locked to version 1.3.1 and an update of this package was not requested.
    - doctrine/inflector 1.3.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 8
    - doctrine/lexer is locked to version 1.2.0 and an update of this package was not requested.
    - doctrine/lexer 1.2.0 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 9
    - dragonmantank/cron-expression is locked to version v2.3.0 and an update of this package was not requested.
    - dragonmantank/cron-expression v2.3.0 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 10
    - laravel/framework is locked to version v6.18.13 and an update of this package was not requested.
    - laravel/framework v6.18.13 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 11
    - laravel/tinker is locked to version v2.0.0 and an update of this package was not requested.
    - laravel/tinker v2.0.0 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 12
    - league/commonmark is locked to version 1.4.3 and an update of this package was not requested.
    - league/commonmark 1.4.3 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 13
    - monolog/monolog is locked to version 2.0.1 and an update of this package was not requested.
    - monolog/monolog 2.0.1 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 14
    - opis/closure is locked to version 3.5.1 and an update of this package was not requested.
    - opis/closure 3.5.1 requires php ^5.4 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 15
    - paragonie/random_compat is locked to version v9.99.99 and an update of this package was not requested.
    - paragonie/random_compat v9.99.99 requires php ^7 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 16
    - phpoption/phpoption is locked to version 1.6.0 and an update of this package was not requested.
    - phpoption/phpoption 1.6.0 requires php ^5.5.9 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 17
    - ramsey/uuid is locked to version 3.9.1 and an update of this package was not requested.
    - ramsey/uuid 3.9.1 requires php ^5.4 | ^7 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 18
    - seld/jsonlint is locked to version 1.7.2 and an update of this package was not requested.
    - seld/jsonlint 1.7.2 requires php ^5.3 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 19
    - symfony/console is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/console v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 20
    - symfony/css-selector is locked to version v5.0.1 and an update of this package was not requested.
    - symfony/css-selector v5.0.1 requires php ^7.2.5 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 21
    - symfony/filesystem is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/filesystem v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 22
    - symfony/finder is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/finder v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 23
    - symfony/process is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/process v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 24
    - symfony/routing is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/routing v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 25
    - symfony/service-contracts is locked to version v2.0.1 and an update of this package was not requested.
    - symfony/service-contracts v2.0.1 requires php ^7.2.5 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 26
    - symfony/translation is locked to version v4.4.1 and an update of this package was not requested.
    - symfony/translation v4.4.1 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 27
    - symfony/translation-contracts is locked to version v2.0.1 and an update of this package was not requested.
    - symfony/translation-contracts v2.0.1 requires php ^7.2.5 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 28
    - tijsverkoyen/css-to-inline-styles is locked to version 2.2.2 and an update of this package was not requested.
    - tijsverkoyen/css-to-inline-styles 2.2.2 requires php ^5.5 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 29
    - vlucas/phpdotenv is locked to version v3.6.0 and an update of this package was not requested.
    - vlucas/phpdotenv v3.6.0 requires php ^5.4 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 30
    - doctrine/instantiator is locked to version 1.3.0 and an update of this package was not requested.
    - doctrine/instantiator 1.3.0 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 31
    - facade/flare-client-php is locked to version 1.3.0 and an update of this package was not requested.
    - facade/flare-client-php 1.3.0 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 32
    - facade/ignition is locked to version 1.13.0 and an update of this package was not requested.
    - facade/ignition 1.13.0 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 33
    - facade/ignition-contracts is locked to version 1.0.0 and an update of this package was not requested.
    - facade/ignition-contracts 1.0.0 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 34
    - facebook/webdriver is locked to version 1.7.1 and an update of this package was not requested.
    - facebook/webdriver 1.7.1 requires php ^5.6 || ~7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 35
    - filp/whoops is locked to version 2.5.0 and an update of this package was not requested.
    - filp/whoops 2.5.0 requires php ^5.5.9 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 36
    - fzaninotto/faker is locked to version v1.9.0 and an update of this package was not requested.
    - fzaninotto/faker v1.9.0 requires php ^5.3.3 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 37
    - hamcrest/hamcrest-php is locked to version v2.0.0 and an update of this package was not requested.
    - hamcrest/hamcrest-php v2.0.0 requires php ^5.3|^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 38
    - laravel/dusk is locked to version dev-master and an update of this package was not requested.
    - laravel/dusk dev-master requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 39
    - laravel/ui is locked to version v1.0.0 and an update of this package was not requested.
    - laravel/ui v1.0.0 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 40
    - maximebf/debugbar is locked to version v1.16.1 and an update of this package was not requested.
    - maximebf/debugbar v1.16.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 41
    - myclabs/deep-copy is locked to version 1.9.3 and an update of this package was not requested.
    - myclabs/deep-copy 1.9.3 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 42
    - nunomaduro/collision is locked to version v3.0.1 and an update of this package was not requested.
    - nunomaduro/collision v3.0.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 43
    - phar-io/manifest is locked to version 1.0.3 and an update of this package was not requested.
    - phar-io/manifest 1.0.3 requires php ^5.6 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 44
    - phar-io/version is locked to version 2.0.1 and an update of this package was not requested.
    - phar-io/version 2.0.1 requires php ^5.6 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 45
    - phpdocumentor/reflection-docblock is locked to version 4.3.2 and an update of this package was not requested.
    - phpdocumentor/reflection-docblock 4.3.2 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 46
    - phpdocumentor/type-resolver is locked to version 1.0.1 and an update of this package was not requested.
    - phpdocumentor/type-resolver 1.0.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 47
    - phpspec/prophecy is locked to version 1.9.0 and an update of this package was not requested.
    - phpspec/prophecy 1.9.0 requires php ^5.3|^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 48
    - phpunit/php-code-coverage is locked to version 7.0.10 and an update of this package was not requested.
    - phpunit/php-code-coverage 7.0.10 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 49
    - phpunit/php-file-iterator is locked to version 2.0.2 and an update of this package was not requested.
    - phpunit/php-file-iterator 2.0.2 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 50
    - phpunit/php-timer is locked to version 2.1.2 and an update of this package was not requested.
    - phpunit/php-timer 2.1.2 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 51
    - phpunit/php-token-stream is locked to version 3.1.1 and an update of this package was not requested.
    - phpunit/php-token-stream 3.1.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 52
    - phpunit/phpunit is locked to version 8.5.0 and an update of this package was not requested.
    - phpunit/phpunit 8.5.0 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 53
    - sebastian/code-unit-reverse-lookup is locked to version 1.0.1 and an update of this package was not requested.
    - sebastian/code-unit-reverse-lookup 1.0.1 requires php ^5.6 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 54
    - sebastian/comparator is locked to version 3.0.2 and an update of this package was not requested.
    - sebastian/comparator 3.0.2 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 55
    - sebastian/diff is locked to version 3.0.2 and an update of this package was not requested.
    - sebastian/diff 3.0.2 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 56
    - sebastian/environment is locked to version 4.2.3 and an update of this package was not requested.
    - sebastian/environment 4.2.3 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 57
    - sebastian/exporter is locked to version 3.1.2 and an update of this package was not requested.
    - sebastian/exporter 3.1.2 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 58
    - sebastian/global-state is locked to version 3.0.0 and an update of this package was not requested.
    - sebastian/global-state 3.0.0 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 59
    - sebastian/object-enumerator is locked to version 3.0.3 and an update of this package was not requested.
    - sebastian/object-enumerator 3.0.3 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 60
    - sebastian/object-reflector is locked to version 1.1.1 and an update of this package was not requested.
    - sebastian/object-reflector 1.1.1 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 61
    - sebastian/recursion-context is locked to version 3.0.0 and an update of this package was not requested.
    - sebastian/recursion-context 3.0.0 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 62
    - sebastian/resource-operations is locked to version 2.0.1 and an update of this package was not requested.
    - sebastian/resource-operations 2.0.1 requires php ^7.1 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 63
    - sebastian/type is locked to version 1.1.3 and an update of this package was not requested.
    - sebastian/type 1.1.3 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 64
    - theseer/tokenizer is locked to version 1.1.3 and an update of this package was not requested.
    - theseer/tokenizer 1.1.3 requires php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 65
    - webmozart/assert is locked to version 1.6.0 and an update of this package was not requested.
    - webmozart/assert 1.6.0 requires php ^5.3.3 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 66
    - laravel/framework v6.18.13 requires php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
    - barryvdh/laravel-debugbar v3.2.9 requires illuminate/routing ^5.5|^6|^7 -> satisfiable by laravel/framework[v6.18.13].
    - barryvdh/laravel-debugbar is locked to version v3.2.9 and an update of this package was not requested.

and trying to do composer update

necrogami@DESKTOP-56L3JFH:/mnt/c/Users/necrogami/code/game$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^7.2 but your php version (8.0.2) does not satisfy that requirement.
  Problem 2
    - Root composer.json requires laravel/ui 1.0 -> satisfiable by laravel/ui[v1.0.0].
    - laravel/ui v1.0.0 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  Problem 3
    - Conclusion: don't install tcg/voyager v1.3.1 (conflict analysis result)
    - Conclusion: don't install league/flysystem[1.1.3] | install tcg/voyager[v1.3.2] (conflict analysis result)
    - Conclusion: don't install tcg/voyager v1.3.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v6.20.12 (conflict analysis result)
    - Conclusion: don't install laravel/framework v6.20.13 (conflict analysis result)
    - Conclusion: don't install laravel/framework v6.20.14 (conflict analysis result)
    - Conclusion: don't install laravel/framework v6.20.15 (conflict analysis result)
    - Conclusion: don't install laravel/framework v6.20.16 (conflict analysis result)
    - tcg/voyager[v1.4.0, ..., 1.x-dev] require laravel/ui >=1.0 -> satisfiable by laravel/ui[v1.0.0].
    - laravel/ui v1.0.0 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
    - laravel/framework[v6.2.0, ..., v6.19.1] require php ^7.2 -> your php version (8.0.2) does not satisfy that requirement.
    - Root composer.json requires tcg/voyager ^1.3.1 -> satisfiable by tcg/voyager[v1.3.1, ..., 1.x-dev].
    - Conclusion: don't install one of league/flysystem[1.1.1], tcg/voyager[1.3.x-dev] | install league/flysystem[1.0.70] (conflict analysis result)
    - Conclusion: don't install one of league/flysystem[1.1.0], tcg/voyager[1.3.x-dev] | install league/flysystem[1.0.70] (conflict analysis result)
    - Conclusion: don't install league/flysystem 1.0.70 (conflict analysis result)
    - Conclusion: don't install one of league/flysystem[1.1.2], tcg/voyager[1.3.x-dev] (conflict analysis result)
    - laravel/framework[v6.20.0, ..., 6.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, ..., 1.x-dev].
    - Conclusion: don't install league/flysystem 1.x-dev (conflict analysis result)
    - Root composer.json requires laravel/framework ^6.2 -> satisfiable by laravel/framework[v6.2.0, ..., 6.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
@Decode84
Copy link

Decode84 commented Mar 5, 2021

You need to upgrade the packages. In the composer.json file you will see the required packages for the project and for its development. Update those to the correct version.

https://laravel.com/docs/7.x/upgrade

@mchekin
Copy link
Owner

mchekin commented Jun 28, 2021

@necrogami

Thank you for reporting this issue.

I just updated the project to version 8.

Currently compose install runs fine for me locally with PHP 8.0.1

The next step is to update the dockerized environment to PHP 8

@mchekin mchekin self-assigned this Jun 28, 2021
@mchekin mchekin closed this as completed Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants