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
<?phpdeclare(strict_types=1);
namespaceApp;
finalclass Client
{
publicfunctiondoRequest(): int
{
if (401 === 200) {
return -1;
} else {
return$this->notUnused();
}
}
privatefunctionnotUnused(): int
{
// This is some code that is very important
}
}
Responsible rules
RemoveUnusedPrivateMethodRector
RemoveAlwaysElseRector
Expected Behavior
<?phpdeclare(strict_types=1);
namespaceApp;
finalclass Client
{
publicfunctiondoRequest(): int
{
if (401 === 200) {
return -1;
}
return$this->notUnused();
}
privatefunctionnotUnused(): int
{
// This is some code that is very important
}
}
?>
Test fixture will be supplied in a following MR in a bit :)
The text was updated successfully, but these errors were encountered:
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.org/demo/1ec0a727-cd6b-633e-9617-33d1d4395dd3
Responsible rules
RemoveUnusedPrivateMethodRector
RemoveAlwaysElseRector
Expected Behavior
Test fixture will be supplied in a following MR in a bit :)
The text was updated successfully, but these errors were encountered: