di
di copied to clipboard
DI config: add spread operator
- bug fix? no
- new feature? yes
- BC break? yes (when someone concats
...
with a scalar parameter. it could be fixed by checking whether return value is an array, but is it worth it?)
For accuracy: it is not like PHP spread operator, because it works with keys, so DbConnection(...%connection%)
in NEON and new DbConnection(...$connection)
in PHP may work different.
It would be fine merge it or reject it. What do you think? I could be the fine feature in Nette 3?