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
I'm getting an 'Cannot redeclare class PhpParser\Node\Scalar\String' error if I do new PhpParser\Node\Scalar\String('foo').
Now I've noticed some changes to the namespaces and naming of classes to prepare for PHP7. So I'm not sure if this is a bug or that I should use String_ instead of String? I'm guessing string might be(come) a reserved word in 7?
I use 1.2.2 and PHP5.5.18
The text was updated successfully, but these errors were encountered:
You're right on all counts ... it's going to be reserved in PHP 7, you should use String_ and this is a bug. The old class name is still supposed to work. I messed up when fixing another class_alias issue :/
I'm getting an 'Cannot redeclare class PhpParser\Node\Scalar\String' error if I do new
PhpParser\Node\Scalar\String('foo')
.Now I've noticed some changes to the namespaces and naming of classes to prepare for PHP7. So I'm not sure if this is a bug or that I should use String_ instead of String? I'm guessing string might be(come) a reserved word in 7?
I use 1.2.2 and PHP5.5.18
The text was updated successfully, but these errors were encountered: