This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Rename the String class for PHP 7.0 #42
Comments
I thought only |
vierbergenlars
added a commit
that referenced
this issue
May 2, 2015
Based off http://3v4l.org/dkvXT, it appears that in April the behavior changed from allowing the \Namespaced\String class to not allowing it anymore. Thus the answer would be that you need to rename the class itself. |
vierbergenlars
added a commit
that referenced
this issue
May 2, 2015
vierbergenlars
added a commit
that referenced
this issue
May 2, 2015
Fixed in 516bb30 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Under PHP 7.0, classes named as String are not allowed. As such, it will generate a fatal error that looks like this:
PHP Fatal error: Cannot use vierbergenlars\LibJs\String as String because 'String' is a special class name in /home/travis/build/tomzx/php-semver-checker-git/vendor/vierbergenlars/php-semver/src/vierbergenlars/SemVer/internal.php on line 5
The text was updated successfully, but these errors were encountered: