Skip to content

Conversation

schlessera
Copy link
Member

@schlessera schlessera commented Dec 3, 2021

This is a follow-up to #5563 .

Instead of only porting over subcommand on command namespace, we're doing so on all composite commands. This way, if a command is registered multiple times, it will still work as expected, while still allowing overrides.

The override needs to be registered as a subcommand in the new composite command, so it will take precedence over the subcommand that were previously registered.

Also, this adapts PHPUnit tests to make them work on PHP 8.1.

@schlessera schlessera requested a review from a team as a code owner December 3, 2021 00:27
@schlessera schlessera added this to the 2.5.1 milestone Dec 3, 2021
@schlessera schlessera force-pushed the fix/command-replacements branch from 3948175 to 582869f Compare December 3, 2021 00:32
@schlessera schlessera force-pushed the fix/command-replacements branch 2 times, most recently from 50d2080 to 316311b Compare December 6, 2021 19:31
@schlessera schlessera force-pushed the fix/command-replacements branch from 316311b to fb15fd3 Compare December 6, 2021 19:48
@schlessera schlessera force-pushed the fix/command-replacements branch from 3559a7e to a359a36 Compare December 6, 2021 23:08
@schlessera schlessera merged commit 0c427c5 into master Dec 6, 2021
@schlessera schlessera deleted the fix/command-replacements branch December 6, 2021 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants