Skip to content

Conversation

@willrowe
Copy link
Contributor

@willrowe willrowe commented May 2, 2025

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

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
58 checks passed
@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