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

[5.5] Adds default string value to Artisan line method #22783

Closed
wants to merge 1 commit into from
Closed

[5.5] Adds default string value to Artisan line method #22783

wants to merge 1 commit into from

Conversation

nunomaduro
Copy link
Member

This PR gives the possibility of put an empty line on an Artisan command without having to put an empty string as parameter.

Before:

        $this->line(''); // <-- We have to put an empty string in order to add a new empty line.

After:

        $this->line();
    }

The result is still the same, an empty line:
empty line

@GrahamCampbell
Copy link
Member

I think 5.6 is the best place for this tbh.

@carusogabriel
Copy link
Contributor

@nunomaduro There's a method call newLine

@taylorotwell
Copy link
Member

Indeed, see newLine method :)

@nunomaduro
Copy link
Member Author

@carusogabriel @taylorotwell Thanks! 👍

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.

None yet

4 participants