contributte / di

:sparkles: Extra contrib to nette/di (@nette)
https://contributte.org/packages/contributte/di.html
MIT License
46 stars 9 forks source link

bugfix: incorrect return type causing a TypeError #12

Closed SpareParts closed 5 years ago

SpareParts commented 5 years ago

InjectValueExtension::expand states its return value as string, but it returns the result of Helpers::expand which is mixed. This causes a TypeError when the value being injected is for e.g a number. Proposed solution is to remove a return type definition (makes it match the Helpers::expand return type).

f3l1x commented 5 years ago

👍