This avoids deprecations reported by Symfony's DebugClassLoader saying that Comparator might add a return type in a future version. The other way to opt-out of the deprecation would be to add a @return phpdoc, but given we only supports PHP 7.2+ that has partial covariance for return types, it is OK to add the types natively.
This avoids deprecations reported by Symfony's DebugClassLoader saying that
Comparator
might add a return type in a future version. The other way to opt-out of the deprecation would be to add a@return
phpdoc, but given we only supports PHP 7.2+ that has partial covariance for return types, it is OK to add the types natively.