Skip to content

Conversation

@OskarStark
Copy link

@OskarStark OskarStark commented Dec 9, 2025

PropertyFetchToMethodCallRector was deprecated in Rector 2.2.6 as it was considered too generic. This commit introduces a custom FakerPropertyToMethodCallRector that specifically handles the transformation of Faker\Generator property access to method calls.

What is the reason for this PR?

  • A new feature
  • Fixed an issue (resolve #ID)

Author's checklist

Summary of changes

Review checklist

  • All checks have passed
  • Changes are added to the CHANGELOG.md
  • Changes are approved by maintainer

cc @mvhirsch

PropertyFetchToMethodCallRector was deprecated in Rector 2.2.6 as it
was considered too generic. This commit introduces a custom
FakerPropertyToMethodCallRector that specifically handles the
transformation of Faker\Generator property access to method calls.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@OskarStark OskarStark force-pushed the OskarStark/rector-deprecated-rule branch from 6acbd59 to 41af658 Compare December 9, 2025 09:52
@mvhirsch
Copy link

mvhirsch commented Dec 9, 2025

@OskarStark Thank you. I'm looking forward to #1008 😊

@localheinz
Copy link
Member

Also see #1008.

@OskarStark
Copy link
Author

Didn't check before, thanks

@OskarStark OskarStark closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants