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

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

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Conversation

browner12
Copy link
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