laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.32k stars 130 forks source link

Set raw output when using `--execute` #155

Closed innocenzi closed 1 year ago

innocenzi commented 1 year ago

Following up https://github.com/laravel/tinker/pull/154, while trying to work around the refusal of the PR by using --execute, I realized the formatting was outputted with the result.

image

To fix this, PsySH has a rawOutput option that needs to be set to true. When using it, the output is correct:

CleanShot 2022-11-08 at 17 33 51