While looking at something different, we noticed a number of places where parameters did not have (non-scalar) type declarations, while they could have.
It would probably be a good idea to do a review of the complete codebase to add object-based/array type declarations wherever possible.
This would not be a breaking change as overloading methods not having a type declaration, means those are declared as mixed and mixed is contravariant with any type, so this would not lead to signature mismatch errors.
While looking at something different, we noticed a number of places where parameters did not have (non-scalar) type declarations, while they could have.
It would probably be a good idea to do a review of the complete codebase to add object-based/array type declarations wherever possible.
This would not be a breaking change as overloading methods not having a type declaration, means those are declared as
mixedandmixedis contravariant with any type, so this would not lead to signature mismatch errors.