Home >Backend Development >PHP Tutorial >在PHP7下执行composer报错,是不是不兼容?

在PHP7下执行composer报错,是不是不兼容?

WBOY
WBOYOriginal
2016-06-06 20:13:421521browse

Downloading https://api.github.com/repos/leaps/leaps-pjax/git/refs/heads?per_page=100

[ErrorException]
Illegal offset type in isset or empty

错误如上,是每次执行都有,不是偶尔出现,我将PHP降级成5.6就可以用。。。有人碰到么?怎么弄得?

回复内容:

Downloading https://api.github.com/repos/leaps/leaps-pjax/git/refs/heads?per_page=100

[ErrorException]
Illegal offset type in isset or empty

错误如上,是每次执行都有,不是偶尔出现,我将PHP降级成5.6就可以用。。。有人碰到么?怎么弄得?

ErrorException是PHP7的新特性,应该是这个错误本来是用错误的方法来捕捉的,但是现在变成exception就被丢到宇宙去了没人接。
纯猜。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn