``ReturnTypeWillChange`` is an attribute that tells PHP that the return type of the related method is different from the defined by the PHP native methods
#[ReturnTypeWillChange] is actually for PHP native interfaces, as they were initialy not enforced, until they were.
It happens to apply to custom methods too. May be static analysis should report such usage, as it is probably a code smell.
#[ReturnTypeWillChange] is actually for PHP native interfaces, as they were initialy not enforced, until they were. It happens to apply to custom methods too. May be static analysis should report such usage, as it is probably a code smell.