-
Notifications
You must be signed in to change notification settings - Fork 88
PHP Fatal error: Cannot use Underscore\Types\String as String because 'String' is a special class name #96
Comments
Try: use Underscore\Types\String as BaseString; |
I don't really have any OS time lately but I'll try to make a new release with the fix on develop as soon as I can |
This issue is very confusing, as I'm using the following code in my
which points to https://github.com/radic-forks/underscore-php as a source code at the packagist repository. This problem doesn't exist in this repository in the current |
I am having this problem as well. Says this only works on php 4.3.0 |
SolutionHere is the workaround which involves patching:
It should work well. Ideally replace the patch from your own fork or local file. Patch file:
|
Does @RobinRadic want to be added as collaborator to this repo maybe? If he's maintaining a stable fork it could be easier to let him update this repository directly |
@Anahkiasen a similar patch is needed for Object as well, got the following error when using PHP Version 7.2:
Please see the similar issue on yii2's Repository |
Can this be fixed in the 1.x branch please? Thanks!
The text was updated successfully, but these errors were encountered: