简体   繁体   English

Composer 更新或要求错误 array_key()

[英]Composer update or require error array_key()

coming here for an error when i try to do a composer update or a composer require in my symfony project.当我尝试在我的 symfony 项目中进行作曲家更新或作曲家要求时,来这里是为了错误。

It always return : array_keys() expects parameter 1 to be array, null given它总是返回: array_keys() expects parameter 1 to be array, null given

Didn't know why, and it since i do a cache clear on composer (cause i got an other error before, a 400 Bad request error on composer require).不知道为什么,因为我在 composer 上清除了缓存(因为我之前遇到了另一个错误,composer require 上的 400 Bad request 错误)。

Thanks for your help.谢谢你的帮助。

After doing composer update -vvv, i can see this message many times :执行 composer update -vvv 后,我可以多次看到此消息:

Skipping download: The 'http://packagist.org/p/provider-2020-01%2434fef7bea0581958875b62f3f1fae710400212a6a3d187c167fba3d903f3b012.json' URL could not be accessed: HTTP/1.1 400 Bad Request

Edit : It seems my proxies are not taken by composer, and i didn't found any configuration file where we can call them.编辑:似乎我的代理没有被作曲家采用,而且我没有找到任何可以调用它们的配置文件。 Any idea?任何的想法?

After composer update or the likes, it runs a Symfony command.composer update等之后,它运行一个 Symfony 命令。 Which generally trigger any app error when in dev mode, this is most likely where the source of your problem is.在开发模式下通常会触发任何应用程序错误,这很可能是问题的根源所在。

The error message should refer to a file/line to where something (and what) is going wrong.错误消息应该引用一个文件/行,指出某事(以及什么)出错的地方。

If you don't have a stacktrace and can't find where it is you can also use verbose mode composer update -vvv to get full debug info.如果您没有composer update -vvv并且找不到它的位置,您还可以使用详细模式composer update -vvv来获取完整的调试信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM