opensolutions/doctrine2bridge

PHP version

Closed this issue · 1 comments

I suggest updating composer.json to require PHP >= 5.4. PHP 5.3 does not support the array shorthand used in Doctrine2BridgeServiceProvider.php. Also, PHP 5.3 does not support $this in anonymous function (occurs in the same file). The first will result in a parse error, the second in a fatal error.

(The complaint by Krzysztof Pultorak at http://www.barryodonovan.com/index.php/2014/01/20/doctrine2-service-provider-for-laravel-4 is probably caused by a PHP version conflict.)

Thanks for bringing this to my attention. Considering the minor changes required to make it compatible with 5.3 I have just done that in b90b94f (and tested).