Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Slight error in Laravel.com documentation #2374

Closed
brada1703 opened this issue Oct 10, 2020 · 2 comments
Closed

Slight error in Laravel.com documentation #2374

brada1703 opened this issue Oct 10, 2020 · 2 comments

Comments

@brada1703
Copy link

brada1703 commented Oct 10, 2020

Hey guys,

I just wanted to correct a slight error in the documentation.

On this page: https://laravel.com/docs/8.x/artisan#writing-output, under You may use the newLine method to display a blank line

It states:

$this->newLine();

// Write three blank lines...
$this->newLine(3);

Note that this will result in a BadMethodCallException.

It should state, instead:

$this->output->newLine();

// Write three blank lines...
$this->output->newLine(3);

This gives you the correct behaviour.

Thanks :)

@ahinkle
Copy link

ahinkle commented Oct 12, 2020

Hey there,

Not an error -- that feature hasn't been released yet. Check back tomorrow on the next Laravel release. laravel/framework#34754

@brada1703
Copy link
Author

Thanks Andy!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants