mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
compact() is documented (https://www.php.net/manual/en/function.compact) as a variadic function accepting parameters which are strings or arrays of strings referencing defined symbols. In actuality, passing nonsense parameters e.g. compact(true, 42) merely returns an empty array. I propose throwing a warning in these cases, to prevent silent bugs.
1.0 KiB
1.0 KiB