AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 998204
Accepted
Boba Fit
Boba Fit
Asked: 2020-01-09 16:02:44 +0800 CST2020-01-09 16:02:44 +0800 CST 2020-01-09 16:02:44 +0800 CST

作曲家崩溃

  • 772

当我运行时,composer update我收到此错误:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Question\Question::__construct() must be of the type string, array given, called in /usr/share/php/Composer/IO/ConsoleIO.php on line 239 and defined in /usr/share/php/Symfony/Component/Console/Question/Question.php:37
Stack trace:
#0 /usr/share/php/Composer/IO/ConsoleIO.php(239): Symfony\Component\Console\Question\Question->__construct(Array, 0)
#1 /var/www/html/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php(434): Composer\IO\ConsoleIO->ask(Array, 0)
#2 /var/www/html/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php(195): Zend\ComponentInstaller\ComponentInstaller->promptForConfigOption('Zend\\Navigation', Object(Zend\ComponentInstaller\Collection), 1)
#3 /var/www/html/vendor/zendframework/zend-component-installer/src/Collection.php(92): Zend\ComponentInstaller\ComponentInstaller->Zend\ComponentInstaller\{closure}(Object(Zend\ComponentInstaller\Collection), 'Zend\\N in /usr/share/php/Symfony/Component/Console/Question/Question.php on line 37

Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Question\Question::__construct() must be of the type string, array given, called in /usr/share/php/Composer/IO/ConsoleIO.php on line 239 and defined in /usr/share/php/Symfony/Component/Console/Question/Question.php:37
Stack trace:
#0 /usr/share/php/Composer/IO/ConsoleIO.php(239): Symfony\Component\Console\Question\Question->__construct(Array, 0)
#1 /var/www/html/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php(434): Composer\IO\ConsoleIO->ask(Array, 0)
#2 /var/www/html/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php(195): Zend\ComponentInstaller\ComponentInstaller->promptForConfigOption('Zend\\Navigation', Object(Zend\ComponentInstaller\Collection), 1)
#3 /var/www/html/vendor/zendframework/zend-component-installer/src/Collection.php(92): Zend\ComponentInstaller\ComponentInstaller->Zend\ComponentInstaller\{closure}(Object(Zend\ComponentInstaller\Collection), 'Zend\\N in /usr/share/php/Symfony/Component/Console/Question/Question.php on line 37

但不是在我所有的项目上。

在失败的项目中,我在 composer.json 文件中得到了以下要求。

"require": {
    "php": "^5.6 || ^7.0",
    "ext-gd": "*",
    "ext-intl": "*",
    "zendframework/zend-component-installer": "^1.0 || ^0.3 || ^1.0.0-dev@dev",
    "zendframework/zend-mvc": "^3.1",
    "zfcampus/zf-development-mode": "^3.0",
    "zendframework/zend-mvc-form": "^1.0",
    "zendframework/zend-mvc-plugins": "^1.0.1",
    "zendframework/zend-session": "^2.7.1",
    "zendframework/zend-authentication": "^2.5",
    "doctrine/doctrine-orm-module": "^1.1.5",
    "doctrine/migrations": "^1.5",
    "zendframework/zend-math": "^3.0",
    "zendframework/zend-crypt": "^3.1",
    "zendframework/zend-captcha": "^2.6",
    "zendframework/zend-mail": "^2.10",
    "zendframework/zend-mime": "^2.7",
    "symfony/polyfill-iconv": "^1.13"
},

如何更新/安装我的网站?

PHP 7.3.12-1
Composer 1.9.1 2019-11-01 17:20:17

php
  • 1 1 个回答
  • 520 Views

1 个回答

  • Voted
  1. Best Answer
    Boba Fit
    2020-01-10T06:46:52+08:002020-01-10T06:46:52+08:00

    谢谢ceejayoz的提示。

    我使用了旧版本的zendframework/zend-component-installer

    我改为 "zendframework/zend-component-installer": "^2.1.2",然后我更新了作曲家:composer update zendframework/zend-component-installer最后我能够更新所有内容:composer update。

    • 0

相关问题

  • 用户特定的 Php.ini 当 php 作为模块运行时?

  • 使 php mail() 函数在 ubuntu-server 上工作的步骤是什么?

  • Web 服务器和数据库服务器位于完全不同的位置

  • PHP 作为 CGI 还是 Apache 模块?

  • 通过 VPN 连接什么是远程服务器 IP?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve