Make inout parameters on magic methods a parser error
Summary:
We have explicit parser checks to disallow magic methods with byref parameters. When I tried updating these tests, I've discovered, we don't have similar checks against inout parameters on magic methods. Moreover, magic `__set(inout $name, value)` *seems* to work (i.e. the test runs successfuly and calls method, despite calling convention mismatch; I'm not sure if it violates any internal assumptions).
Add equivalent parser check to block inout parameters from magic methods.
Reviewed By: dabek
Differential Revision:
D17728519
fbshipit-source-id:
f979ecbb7c69647f425b36788e72e7446cfda17e