laminas / laminas-servicemanager

Factory-Driven Dependency Injection Container
https://docs.laminas.dev/laminas-servicemanager/
BSD 3-Clause "New" or "Revised" License
154 stars 57 forks source link

Make `ServiceLocatorInterface#get()` generic #230

Closed InvisibleSmiley closed 8 months ago

InvisibleSmiley commented 8 months ago
Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA no

Description

Fix #228: Override/improve ContainerInterface::get return type hints in ServiceLocatorInterface (add generics / let class-string input affect return type inference)