Noscream On Ellipsis

<?php

function foo($a, $b) {}

foo(...$array); // Normal call

foo(...@$array); // Hide Undefined variable, but trips on null!

foo(@...$array); // @ doesn't work on operators, so not on ...

foo(@...@$array); // same as above, but it looks cool!

Noscream operator @ hides errors locally, in an expression. Variadic ... spreads the elements of an array.

What happens when the two are mixed?

@ works on a variable, but it will yield a NULL when the variable is undefined, which is a fatal error when used with ellipsis. So, this is legit, but also a dead end.

@ doesn’t work on operators, so it is not possible to put it before the ellipsis, without a compilation error.

Finally, the syntax @...@ would be definitely cool. Crazy, but cool. Don’t use it.

See Also

PHP Features

Last updated: 14 July 2026