laravel / tinker

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

Output (result) not given upon submitting a code line #43

Closed cookiedumper closed 6 years ago

cookiedumper commented 6 years ago

Not sure if it has to do with a recent Tinker update, but currently upon submitting a line (pressing Enter), the result, or PHP output, is not shown.

Example (no result is being outputted after line is run)

Psy Shell v0.8.16 (PHP 7.2.4 — cli) by Justin Hileman
>>> my_func()
>>> 

Expected (note the "bool(false)" part which is the PHP result/output)

Psy Shell v0.8.16 (PHP 7.2.4 — cli) by Justin Hileman
>>> my_func()
bool(false)
>>> 

Am I missing something? Is there a setting I need to update?

bobthecow commented 6 years ago

What is the value of $_ after running my_func()? what is the output of var_dump(my_func())?

GrahamCampbell commented 6 years ago

Closing due to no response. Please feel free to raise an issue on https://github.com/bobthecow/psysh.