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

[2.x] Fixes missing output while using execute option #109

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

nunomaduro
Copy link
Member

When using tinker with the execute option, the output instance is missing on the $shell instance. Causing tinker not being able to show exceptions to the user. You can quickly reproduce this bug in a fresh Laravel application like so:

php artisan tinker --execute="throw new Exception('Foo');"

Gives the following error: Error: Call to a member function writeln() on null.

After this chance, you will get the expected output: Exception with message 'Foo'.

@GrahamCampbell
Copy link
Member

I suppose this shows nobody is using the execute option. Could we remove it?

@nunomaduro
Copy link
Member Author

@GrahamCampbell We are using it in Vapor.

@GrahamCampbell
Copy link
Member

;)

@taylorotwell taylorotwell merged commit c8afc14 into 2.x Aug 11, 2020
@nunomaduro nunomaduro deleted the fix/missing-output-in-execute-option branch August 11, 2020 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants