Skip to content

[DeadCode] Remove union with interface on RemoveUselessParamTagRector to make it consistent#5794

Merged
samsonasik merged 2 commits intomainfrom
remove-union-with-interface
Apr 3, 2024
Merged

[DeadCode] Remove union with interface on RemoveUselessParamTagRector to make it consistent#5794
samsonasik merged 2 commits intomainfrom
remove-union-with-interface

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Apr 3, 2024

@arjenschol after some thinking, union with interface is fine to be removed:

-    /**
-     * @param SomeClass|SomeInterface $someInterface
-     */
    public function run(SomeInterface $someInterface)

which SomeClass implements SomeInterface.

Ref #5684

@samsonasik samsonasik enabled auto-merge (squash) April 3, 2024 07:02
@samsonasik samsonasik merged commit f889e41 into main Apr 3, 2024
@samsonasik samsonasik deleted the remove-union-with-interface branch April 3, 2024 07:03
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