We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
abstract class X { final public function test(string $var): self }
changed to:
abstract class X { final public function test(?string $var): self }
result will be:
[BC] CHANGED: The parameter $var of X#test() changed from string to ?string
Real example: yiisoft/html#78
The text was updated successfully, but these errors were encountered:
null
Tag::class()
Tag::replaceClass()
BooleanInputTag::label()
BooleanInputTag::sideLabel()
So, if I understand correctly, if a method is final, then a contravariant type (expansion) is acceptable here.
final
The check should be this one:
BackwardCompatibilityCheck/src/DetectChanges/BCBreak/FunctionBased/ParameterTypeChanged.php
Line 22 in 7f185e3
I think we need to restrict ParameterTypeChanged checks (see https://github.com/Roave/BackwardCompatibilityCheck/blob/7f185e3128276bbaa3d6c086ebee45e3ba02c374/bin/roave-backward-compatibility-check.php) to only non-contravariant, when the method is final.
ParameterTypeChanged
Sorry, something went wrong.
Not going to be able to drag this into 6.0 - removing milestone for now.
6.0
No branches or pull requests
Example:
changed to:
result will be:
Real example: yiisoft/html#78
The text was updated successfully, but these errors were encountered: