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
FinalizeTestCaseClassRector
The documentation (https://github.com/rectorphp/rector/blob/main/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php) clearly shows how the code is edited. It adds the final keyword before a use statement, however the real behavior is adding the final keyword before the class keyword.
final
use
class
This confused me at first as I was wondering if this is a new feature.
The documentation should show adding the keyword before the class keyword, not the use keyword.
This could also be a bug with the existing code, but I am not sure as I do not understand these constructs.
The text was updated successfully, but these errors were encountered:
Could you try provide a patch PR? You can edit https://github.com/rectorphp/rector-src/blob/cc4b63fe261a39b55b621e426d87346042412741/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php#L41 and run composer docs to regenerate docs
composer docs
Thank you.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
Issue
The documentation (https://github.com/rectorphp/rector/blob/main/rules/Privatization/Rector/Class_/FinalizeTestCaseClassRector.php) clearly shows how the code is edited. It adds the
final
keyword before ause
statement, however the real behavior is adding thefinal
keyword before theclass
keyword.This confused me at first as I was wondering if this is a new feature.
Expected Behaviour
The documentation should show adding the keyword before the
class
keyword, not theuse
keyword.This could also be a bug with the existing code, but I am not sure as I do not understand these constructs.
The text was updated successfully, but these errors were encountered: