国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman安裝php-di與webman的psr/container沖突

dpdzq

問題描述

今天新下載了webman,創(chuàng)建了項目后,默認 psr/container 就是使用的^2.0版本,我在項目里面通過composer安裝php-di的時候報錯,必須使用psr/container^1.0才可以,最后通過 composer config -g --unset repos.packagist 命令后,終于安裝成功了 php-di^6.4版本,但是

啟動報錯,應(yīng)該是psr/container與php-di版本問題沖突了?
PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210

Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210
PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210

Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210
Worker[31791] process terminated with ERROR: E_COMPILE_ERROR "Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210"
Worker[31789] process terminated with ERROR: E_COMPILE_ERROR "Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210"
PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210

Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210
Worker[31790] process terminated with ERROR: E_COMPILE_ERROR "Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210"
PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210

Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210
Worker[31792] process terminated with ERROR: E_COMPILE_ERROR "Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210"
PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210

Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210
Worker[31793] process terminated with ERROR: E_COMPILE_ERROR "Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/webman/vendor/php-di/php-di/src/Container.php on line 210"
^CWorkerman[start.php] stopping ...

539 1 0
1個回答

Tinywan

php版本,webman版本要貼上來

  • dpdzq 2024-12-19

    PHP版本:PHP 7.4.33
    Webman版本怎么看呢,我就是剛剛通過 composer create-project workerman/webman 命令創(chuàng)建的

  • dpdzq 2024-12-19

    運行了下webman,顯示 :Workerman version:4.1.17

  • walkor 2024-12-19

    用php8 吧

  • dpdzq 2024-12-19

    服務(wù)器上跑著其他的東西,還沒發(fā)直接升級php,怕以前的東西出現(xiàn)兼容性

??