Skip to content

Standardize file names#21

Merged
schlessera merged 2 commits intomasterfrom
19-rename
Feb 14, 2018
Merged

Standardize file names#21
schlessera merged 2 commits intomasterfrom
19-rename

Conversation

@swissspidy
Copy link
Copy Markdown
Member

Fixes #19.

@swissspidy swissspidy requested a review from a team February 10, 2018 15:31
*
*/
class Command_Namespace extends CommandNamespace {
class CommandNamespace extends WP_CLI\Dispatcher\CommandNamespace {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This breaks, as you're using a relative namespace here. So you're extending WP_CLI\I18n\WP_CLI\Dispatcher\CommandNamespace.

As you need to deal with two similar class names, I'd use an alias here.

So, something like this:

use WP_CLI\Dispatcher\CommandNamespace as BaseCommandNamespace;

class CommandNamespace extends BaseCommandNamespace {

@schlessera schlessera added bug command:i18n Related to 'i18n' command labels Feb 14, 2018
@schlessera schlessera merged commit a1b6e67 into master Feb 14, 2018
@schlessera schlessera added this to the 0.1.0 milestone Feb 14, 2018
@schlessera schlessera deleted the 19-rename branch February 14, 2018 15:59
schlessera added a commit that referenced this pull request Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:i18n Related to 'i18n' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants