Skip to content

[6.x] Adjust is_callable usage where needed for PHP 8#34999

Merged
taylorotwell merged 2 commits into
6.xfrom
is_callable
Oct 27, 2020
Merged

[6.x] Adjust is_callable usage where needed for PHP 8#34999
taylorotwell merged 2 commits into
6.xfrom
is_callable

Conversation

@taylorotwell

Copy link
Copy Markdown
Member

No description provided.

@GrahamCampbell GrahamCampbell changed the title Adjust is_callable usage where needed for php8 [6.x] Adjust is_callable usage where needed for PHP 8 Oct 27, 2020
@taylorotwell
taylorotwell merged commit 6611265 into 6.x Oct 27, 2020
@taylorotwell
taylorotwell deleted the is_callable branch October 27, 2020 19:50
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
@see laravel/framework#34999

The return string was changed from Closure to Callback in order to support PHP 8, which in turn broke how we were identifying closure tasks.
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
Use Str to check for empty commands, which will account for the command being null or an empty string.

Also add check for the closure summaryForDisplay output being one of either `Closure` or `Callback`, which was added to support PHP 8

@see laravel/framework#34999
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
Use Str to check for empty commands, which will account for the command being null or an empty string.

Also add check for the closure summaryForDisplay output being one of either `Closure` or `Callback`, which was added to support PHP 8

@see laravel/framework#34999
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
Use Str to check for empty commands, which will account for the command being null or an empty string.

Also add check for the closure summaryForDisplay output being one of either `Closure` or `Callback`, which was added to support PHP 8

@see laravel/framework#34999
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
Use Str to check for empty commands, which will account for the command being null or an empty string.

Also add check for the closure summaryForDisplay output being one of either `Closure` or `Callback`, which was added to support PHP 8

@see laravel/framework#34999
michaeldyrynda added a commit to thenpingme/thenpingme-laravel that referenced this pull request Nov 17, 2020
Laravel changed the return of `getSummaryForDisplay` to be `Callback`,
rather than `Closure`, in order to support PHP 8.

@see laravel/framework#34999
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