Ensure PHP parameter type declarations are compatible with those for the same method in any classes we inherit from. See #2151
I missed that this change breaks cpp_static, which seems to be to do with handling the combined getter and setter we emit for static member variables. Reverting while I figure out how to handle that. This reverts commit a277748870.
a277748870