thephpleague / container

Small but powerful dependency injection container

Home Page:http://container.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not work default value arguments with ioncube

dimaxz opened this issue · comments

https://github.com/thephpleague/container/blob/master/src/Argument/ArgumentResolverTrait.php#L74

with ioncube
Fatal error: Uncaught exception
'League\Container\Exception\NotFoundException' with message 'Unable to
resolve a value for parameter (tableName) in the function/method
(__construct)' in

example __construct($tableName = false){

By default, a container definition expects all arguments to be defined, this is intended.

Maybe it is because of ioncube, any files contains reflection MUST be encoded with argument --allow-reflection-all or --allow-reflection <pattern>.