yiisoft / injector

PSR-11 compatible injector
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
43 stars 18 forks source link

Supporting for php 8.1 (pure intersection types) #61

Closed roxblnfk closed 2 years ago

roxblnfk commented 2 years ago

Need to update the Injector and tests https://wiki.php.net/rfc/pure-intersection-types Enums (just cover with tests)

vjik commented 2 years ago

We don't can get object from container by intersection types. Injector can use only explicitly passed parameters for arguments with intersection types.

roxblnfk commented 2 years ago

I mean Injector's ability to pass prepared unnamed arguments (without using Container). Also we have some code that prints method signatures. It should support intersected types.

roxblnfk commented 2 years ago

Last issue part is here: https://github.com/yiisoft/injector/issues/65