Skip to content
New issue

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

Incorrect behavior of FinalizePublicClassConstantRector #1738

Closed
wants to merge 3 commits into from

Conversation

trandbert37
Copy link
Contributor

@trandbert37 trandbert37 commented Jan 28, 2022

Add test to cover rectorphp/rector#6973

…tRector/Fixture/class_inheritance.php.inc

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member

@trandbert37 I cherry-picked your commit at PR #1739

samsonasik added a commit that referenced this pull request Jan 28, 2022
…s children on FinalizePublicClassConstantRector (#1739)

* Add failing test fixture for FinalizePublicClassConstantRector

# Failing Test for FinalizePublicClassConstantRector

Based on https://getrector.org/demo/1ec7f537-6973-6358-8246-11db50a94ec6

* Rename parent_class.php.inc to class_inheritance.php.inc

* Update rules-tests/Php81/Rector/ClassConst/FinalizePublicClassConstantRector/Fixture/class_inheritance.php.inc

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

* Closes #1738

* final touch: clean up

* plural fix

* Update rules/Php81/Rector/ClassConst/FinalizePublicClassConstantRector.php

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>

Co-authored-by: Alexandre Bertrand <trandbert37@users.noreply.github.com>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants