Skip to content

[12.x] Allow naming queued closures#55634

Merged
taylorotwell merged 3 commits into
laravel:12.xfrom
willrowe:feature/name-queued-closures
May 5, 2025
Merged

[12.x] Allow naming queued closures#55634
taylorotwell merged 3 commits into
laravel:12.xfrom
willrowe:feature/name-queued-closures

Conversation

@willrowe

@willrowe willrowe commented May 2, 2025

Copy link
Copy Markdown
Contributor

This allows a queued closure to be given a name in order to be more easily identified. The name is prefixed to the display name so that it still denotes that it is a closure and where it is located.

@willrowe willrowe force-pushed the feature/name-queued-closures branch from 403714d to 5da65f2 Compare May 2, 2025 18:01
Comment on lines +116 to +118
if (! is_null($this->name)) {
$prefix = "{$this->name} - ";
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

$prefix = is_null($this->name) ? '' : "{$this->name} - ";

@taylorotwell taylorotwell merged commit ae91534 into laravel:12.x May 5, 2025
@willrowe willrowe deleted the feature/name-queued-closures branch May 5, 2025 14:57
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