No Unknown For array_merge()

no-email (Damien Seguy), Damien Seguy
Mon, 18 Mar 2024 00:00:00 +0000

A PHP variadic argument collects all the unused named parameters, along with their key. That way, it is possible to handle them with their name inside the method.
On the other hand, array_merge (and some cousins) refuse them, and emits a Fatal error. There, it is important to use array_values() to avoid named parameters.