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 吗? #113

Open
xuchunyang opened this issue Nov 18, 2021 · 1 comment
Open

安装报错。不支持 PHP 8 吗? #113

xuchunyang opened this issue Nov 18, 2021 · 1 comment

Comments

@xuchunyang
Copy link

你好,我想试试这个后台,但是安装失败了,提示 PHP 8 版本不满足要求:

➜  Temp composer create-project --prefer-dist zhongshaofa/easyadmin blog
Creating a "zhongshaofa/easyadmin" project at "./blog"
Installing zhongshaofa/easyadmin (v2.1.6)
  - Installing zhongshaofa/easyadmin (v2.1.6): Extracting archive
Created project in /Users/xcy/Desktop/Temp/blog
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
    - markbaker/complex is locked to version 1.4.8 and an update of this package was not requested.
    - markbaker/complex 1.4.8 requires php ^5.6.0|^7.0.0 -> your php version (8.0.10) does not satisfy that requirement.
  Problem 2
    - markbaker/matrix is locked to version 1.2.0 and an update of this package was not requested.
    - markbaker/matrix 1.2.0 requires php ^5.6.0|^7.0.0 -> your php version (8.0.10) does not satisfy that requirement.
  Problem 3
    - phpoffice/phpspreadsheet is locked to version 1.12.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.12.0 requires php ^7.1 -> your php version (8.0.10) does not satisfy that requirement.
  Problem 4
    - symfony/var-dumper is locked to version v4.3.6 and an update of this package was not requested.
    - symfony/var-dumper v4.3.6 requires php ^7.1.3 -> your php version (8.0.10) does not satisfy that requirement.
  Problem 5
    - phpoffice/phpspreadsheet 1.12.0 requires php ^7.1 -> your php version (8.0.10) does not satisfy that requirement.
    - jianyan74/php-excel 1.0.1 requires phpoffice/phpspreadsheet ^1.3 -> satisfiable by phpoffice/phpspreadsheet[1.12.0].
    - jianyan74/php-excel is locked to version 1.0.1 and an update of this package was not requested.

➜  Temp cd blog
➜  blog composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 11 installs, 30 updates, 0 removals
  - Upgrading alibabacloud/client (1.5.18 => 1.5.31)
  - Upgrading aliyuncs/oss-sdk-php (v2.3.0 => v2.4.3)
  - Upgrading clagiordano/weblibs-configmanager (v1.0.7 => v1.5.0)
  - Upgrading eaglewu/swoole-ide-helper (dev-master a255daa => dev-master 70147a0)
  - Locking ezyang/htmlpurifier (v4.13.0)
  - Upgrading guzzlehttp/command (1.0.0 => 1.2.1)
  - Upgrading guzzlehttp/guzzle (6.4.1 => 7.4.0)
  - Upgrading guzzlehttp/guzzle-services (1.1.3 => 1.3.1)
  - Upgrading guzzlehttp/promises (v1.3.1 => 1.5.1)
  - Upgrading guzzlehttp/psr7 (1.6.1 => 2.1.0)
  - Locking guzzlehttp/uri-template (v1.0.1)
  - Upgrading jianyan74/php-excel (1.0.1 => 1.0.2)
  - Upgrading league/flysystem (1.0.57 => 1.1.5)
  - Upgrading league/flysystem-cached-adapter (1.0.9 => 1.1.0)
  - Locking league/mime-type-detection (1.8.0)
  - Locking maennchen/zipstream-php (2.1.0)
  - Upgrading markbaker/complex (1.4.8 => 3.0.1)
  - Upgrading markbaker/matrix (1.2.0 => 3.0.0)
  - Upgrading mtdowling/jmespath.php (2.4.0 => 2.6.1)
  - Locking myclabs/php-enum (1.8.3)
  - Upgrading phpoffice/phpspreadsheet (1.12.0 => 1.19.0)
  - Upgrading psr/container (1.0.0 => 1.1.2)
  - Locking psr/http-client (1.0.1)
  - Locking psr/http-factory (1.0.1)
  - Upgrading psr/log (1.1.2 => 1.1.4)
  - Upgrading qcloud/cos-sdk-v5 (v2.0.3 => v2.4.1)
  - Upgrading qiniu/php-sdk (v7.2.10 => v7.4.1)
  - Locking symfony/deprecation-contracts (v2.4.0)
  - Locking symfony/polyfill-ctype (v1.23.0)
  - Upgrading symfony/polyfill-mbstring (v1.16.0 => v1.23.1)
  - Upgrading symfony/polyfill-php72 (v1.12.0 => v1.23.0)
  - Locking symfony/polyfill-php80 (v1.23.1)
  - Upgrading symfony/var-dumper (v4.3.6 => v4.4.33)
  - Locking symfony/yaml (v2.8.52)
  - Upgrading topthink/framework (v6.0.8 => v6.0.9)
  - Upgrading topthink/think-captcha (v3.0.2 => v3.0.3)
  - Upgrading topthink/think-helper (v3.1.4 => v3.1.5)
  - Upgrading topthink/think-multi-app (v1.0.11 => v1.0.14)
  - Upgrading topthink/think-orm (v2.0.27 => v2.0.44)
  - Upgrading topthink/think-template (v2.0.7 => v2.0.8)
  - Upgrading topthink/think-view (v1.0.13 => v1.0.14)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 51 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-mbstring (v1.23.1): Extracting archive
  - Installing mtdowling/jmespath.php (2.6.1): Extracting archive
  - Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing psr/http-client (1.0.1): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.1): Extracting archive
  - Installing guzzlehttp/psr7 (2.1.0): Extracting archive
  - Installing guzzlehttp/promises (1.5.1): Extracting archive
  - Installing guzzlehttp/guzzle (7.4.0): Extracting archive
  - Installing danielstjules/stringy (3.1.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.23.0): Extracting archive
  - Installing symfony/yaml (v2.8.52): Extracting archive
  - Installing clagiordano/weblibs-configmanager (v1.5.0): Extracting archive
  - Installing adbario/php-dot-notation (2.2.0): Extracting archive
  - Installing alibabacloud/client (1.5.31): Extracting archive
  - Installing aliyuncs/oss-sdk-php (v2.4.3): Extracting archive
  - Installing doctrine/lexer (1.2.1): Extracting archive
  - Installing eaglewu/swoole-ide-helper (dev-master 70147a0): Extracting archive
  - Installing guzzlehttp/command (1.2.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.23.1): Extracting archive
  - Installing guzzlehttp/uri-template (v1.0.1): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing markbaker/matrix (3.0.0): Extracting archive
  - Installing markbaker/complex (3.0.1): Extracting archive
  - Installing myclabs/php-enum (1.8.3): Extracting archive
  - Installing maennchen/zipstream-php (2.1.0): Extracting archive
  - Installing ezyang/htmlpurifier (v4.13.0): Extracting archive
  - Installing phpoffice/phpspreadsheet (1.19.0): Extracting archive
  - Installing jianyan74/php-excel (1.0.2): Extracting archive
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing league/mime-type-detection (1.8.0): Extracting archive
  - Installing league/flysystem (1.1.5): Extracting archive
  - Installing league/flysystem-cached-adapter (1.1.0): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing guzzlehttp/guzzle-services (1.3.1): Extracting archive
  - Installing qcloud/cos-sdk-v5 (v2.4.1): Extracting archive
  - Installing qiniu/php-sdk (v7.4.1): Extracting archive
  - Installing symfony/polyfill-php72 (v1.23.0): Extracting archive
  - Installing symfony/var-dumper (v4.4.33): Extracting archive
  - Installing topthink/think-helper (v3.1.5): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing topthink/think-orm (v2.0.44): Extracting archive
  - Installing topthink/framework (v6.0.9): Extracting archive
  - Installing topthink/think-captcha (v3.0.3): Extracting archive
  - Installing topthink/think-multi-app (v1.0.14): Extracting archive
  - Installing topthink/think-template (v2.0.8): Extracting archive
  - Installing topthink/think-view (v1.0.14): Extracting archive
  - Installing doctrine/annotations (1.13.2): Extracting archive
  - Installing zhongshaofa/easy-admin (v1.0.2): Extracting archive
  - Installing zhongshaofa/thinkphp-log-trace (v1.0.1): Extracting archive
Generating autoload files
> @php think service:discover
PHP Fatal error:  Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /Users/xcy/Desktop/Temp/blog/app/common.php on line 57
Script @php think service:discover handling the post-autoload-dump event returned with error code 255
➜  blog php --version
PHP 8.0.10 (cli) (built: Aug 26 2021 07:11:25) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.10, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.10, Copyright (c), by Zend Technologies
➜  blog composer --version
Composer version 2.1.5 2021-07-23 10:35:47
➜  blog uname -a
Darwin XudeiMac.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64
➜  blog
@zhongshaofa
Copy link
Owner

暂时不支持PHP8

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

2 participants