Anahkiasen / underscore-php

A redacted PHP port of Underscore.js with additional functions and goodies – Available for Composer and Laravel
http://anahkiasen.github.com/underscore-php/
1.12k stars 88 forks source link

Php 7 - Fatal error: Cannot use Underscore\Types\String as String because 'String' is a special class name #78

Closed maarekj closed 8 years ago

maarekj commented 8 years ago

In php7 there is this error:

Fatal error: Cannot use Underscore\Types\String as String because 'String' is a special class name in /myproject/vendor/anahkiasen/underscore-php/src/Methods/StringMethods.php on line 5

Php7 not allows the classes to have a name like string, bool, int, ... See http://php.net/manual/en/reserved.other-reserved-words.php for more details

maarekj commented 8 years ago

Sorry this bug has fixed in recent version of underscore-php

itsazzad commented 8 years ago

Not working with me

jonathanbell commented 7 years ago

+1

maarekj commented 7 years ago

@itsazzad @jonathanbell What is the issue and what is the version of the lib ?