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.6] Schedule - Use is_subclass_of() #23774

Closed
wants to merge 1 commit into from
Closed

[5.6] Schedule - Use is_subclass_of() #23774

wants to merge 1 commit into from

Conversation

KennedyTedesco
Copy link
Contributor

@KennedyTedesco KennedyTedesco commented Apr 1, 2018

Following: #23764

This is not a bug fix or anything, just being more specific in the evaluation.

Already tested here: https://github.com/laravel/framework/blob/5.6/tests/Console/ConsoleEventSchedulerTest.php#L89

So, all good. :)

@@ -74,7 +75,7 @@ public function call($callback, array $parameters = [])
*/
public function command($command, array $parameters = [])
{
if (class_exists($command)) {
if (is_subclass_of($command, SymfonyCommand::class)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Check the linked PR

@KennedyTedesco KennedyTedesco deleted the schedule-5.6 branch April 2, 2018 20:31
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.

4 participants