Skip to content

fix: skip privatizing Laravel Model attributes and scopes#7218

Merged
samsonasik merged 4 commits into
rectorphp:mainfrom
calebdw:calebdw/push-vtlvpsyootkt
Sep 5, 2025
Merged

fix: skip privatizing Laravel Model attributes and scopes#7218
samsonasik merged 4 commits into
rectorphp:mainfrom
calebdw:calebdw/push-vtlvpsyootkt

Conversation

@calebdw

@calebdw calebdw commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Hello!

Please see #7144 (comment), this skips privatizing Laravel Model attributes and scopes as these are called in the parent Model class.

Thanks!

Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
@samsonasik

samsonasik commented Sep 4, 2025

Copy link
Copy Markdown
Member

/cc @driftingly @GeniJaho could you help for review this, thank you.

Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
@calebdw calebdw force-pushed the calebdw/push-vtlvpsyootkt branch from c21e411 to 7229040 Compare September 4, 2025 17:01
@calebdw calebdw force-pushed the calebdw/push-vtlvpsyootkt branch from 7229040 to a563ce7 Compare September 4, 2025 17:07

@samsonasik samsonasik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m fine with this — let’s wait a bit to see if any of the Laravel folks have feedback :)

@GeniJaho

GeniJaho commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

Looks good to me as well 🙌

Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
Comment thread rules/Privatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector.php Outdated
@samsonasik

Copy link
Copy Markdown
Member

Looks good, thank you @calebdw

@samsonasik samsonasik merged commit f9e741c into rectorphp:main Sep 5, 2025
49 checks passed
@calebdw calebdw deleted the calebdw/push-vtlvpsyootkt branch September 5, 2025 16:06
@github-actions

github-actions Bot commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants