Skip to content

Conversation

samsonasik
Copy link
Member

This to remove argument from parent:: call when argument value is equal with parent default value on exactly same position.

-parent::__construct([]);
+parent::__construct();

when parent method is exactly have same value with default:

class SomeParent
{
    public function __construct(array $params = [])
    {
    }
}

@samsonasik samsonasik marked this pull request as draft June 1, 2025 13:59
@samsonasik samsonasik marked this pull request as ready for review June 1, 2025 14:06
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit c106ed8 into main Jun 1, 2025
45 checks passed
@TomasVotruba TomasVotruba deleted the remo-de branch June 1, 2025 21:16
@TomasVotruba
Copy link
Member

Looks good 💯

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.

2 participants