Always Compatible VariadicΒΆ

By Sergii Shymko

A variadic argument is a valid and compatible signature, for methods that overwrite other methods.

Method compatibility usually require the arguments to be the same, but with a variadic argument and also some of the arguments from the parent method, the signature is still considered compatible by PHP.

../_images/always_compatible_variadic.png