You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the rule is fine, it just need another rule to change deprecated assertInternal* under phpunit80 config set, set continuation change will apply based on version applied.
Looking at PHPUnit change back and forth, I think the best way is to skip gettype() as it would work only for a year :)
Fixed in: rectorphp/rector-phpunit#337
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/a2c93c41-3204-4ef7-ace6-e8d03300c6ca
Responsible rules
AssertCompareToSpecificMethodRector
Expected Behavior
Rector changes the code to use
assertInternalType()
, but this method has been deprecated in PHPUnit 8 and removed in PHPUnit 9.Rector should transform code to the the new assert methods (also see the assertions about closed resources).
The text was updated successfully, but these errors were encountered: