Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.4] Set $name in Console\Command #17610

Merged
merged 1 commit into from
Jan 27, 2017
Merged

Conversation

lucifurious
Copy link
Contributor

Symfony's $name member is, for some crazy reason, private.

When the parent constructor is called from configureUsingFluentDefinition(), only the $name member of the subclass (Symfony\Component\Console\Command\Command) is set. Since it's private, the overridden $name in Illuminate\Console\Command ($this->name) is always null.

This fix sets the Laravel Console\Command $name member before calling the parent constructor.

@GrahamCampbell GrahamCampbell changed the title Set $name in Console\Command [5.4] Set $name in Console\Command Jan 27, 2017
@taylorotwell taylorotwell merged commit 03f3d7d into laravel:5.4 Jan 27, 2017
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.

3 participants