You can mix with named arguments, and when the method is variadic you can set argument names that would not be allowed as variable name.
We use this feature for the MongoDB Aggregation Builder: https://github.com/mongodb/mongo-php-library/blob/f74c42f81e77fdc86998202f2f8985baa7a289ed/tests/Builder/Expression/RangeOperatorTest.php#L20-L31
Post image

Comments