Skip to content

[9.x] Allow chaining of ->newLine() - #41327

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
browner12:patch-5
Mar 3, 2022
Merged

[9.x] Allow chaining of ->newLine()#41327
taylorotwell merged 1 commit into
laravel:9.xfrom
browner12:patch-5

Conversation

@browner12

Copy link
Copy Markdown
Contributor
$this->newLine();
$this->info('Success!');

can now be shortened to

$this->newLine()->info('Success');

If people like this, would we want to apply this to all of our console output commands, like warn(), error(), question(), etc?

```php
$this->newLine();
$this->info('Success!');
```

can now be shortened to

```php
$this->newLine()->info('Success');
```
@taylorotwell
taylorotwell merged commit 5c77dac into laravel:9.x Mar 3, 2022
@browner12
browner12 deleted the patch-5 branch March 3, 2022 18:01
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