You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that PHPFMT is not compatible with PHP 7.1
This issue is caused by the fact that "yield from" produces the token T_YIELD_FROM but this token is not yet managed by phpfmt.
I made a quick fix which does not seems to have any side effect.
I uncompressed the fmt.phar to have access to fmt.stub.php and then I simply added the following lines before the default case of ResizeSpaces::format :
case T_YIELD_FROM:
$this->appendCode($text . $this->getSpace($this->rightTokenIs(T_STRING)));
break;
results in
removing the space and breaking the actual logic.
i believe it would be enough to just define T_YIELD_FROM in the tokenizer.
token id is 269
//edit: running on php7.1.11
thanks
The text was updated successfully, but these errors were encountered: