di icon indicating copy to clipboard operation
di copied to clipboard

DI config: add spread operator

Open matej21 opened this issue 6 years ago • 2 comments

  • 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?)

matej21 avatar Aug 14 '17 13:08 matej21

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.

dg avatar Aug 19 '17 15:08 dg

It would be fine merge it or reject it. What do you think? I could be the fine feature in Nette 3?

f3l1x avatar Feb 18 '18 00:02 f3l1x