Mixed Compatibility¶
Method compatibility means that eponymous methods must have the same number of arguments, and compatible types.
One special case is using variadic: with it, it is allowed to remove arguments, as long as they are the same type, and next to the variadic.
With mixed variadic, it is also possible to go from no arguments to one argument. The opposite is not possible: one cannot drop a mixed ...$args once it was added.
See Also¶
mixed variadic magic [Try me]