Skip to content

Remove trait support rom AddParamBasedOnParentClassMethodRector as depends on context; move to Class_ node hooking for efficiency#7587

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-speed
Oct 26, 2025
Merged

Remove trait support rom AddParamBasedOnParentClassMethodRector as depends on context; move to Class_ node hooking for efficiency#7587
TomasVotruba merged 1 commit into
mainfrom
tv-speed

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

…pends on context; move to Class_ node hooking for efficiency
Comment on lines +102 to 104
if ($node->extends === null && $node->implements === []) {
return null;
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Skip all classes without parent contracts

@TomasVotruba TomasVotruba merged commit 77aeeb3 into main Oct 26, 2025
53 checks passed
@TomasVotruba TomasVotruba deleted the tv-speed branch October 26, 2025 23:40
{
private array $values = [];

abstract public function addValue(int $value);
Copy link
Copy Markdown
Member

@samsonasik samsonasik Oct 27, 2025

Choose a reason for hiding this comment

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

this trait method is abstract, actually need to be implemented by trait that consume it via use() inside the trait.

That's why there is skip trait that not implements abstract trait fixture, and trait fixture that override this abstract method.

@github-actions
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 Mar 29, 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.

2 participants