Roboroads / laravel-tinker

Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Apache License 2.0
213 stars 15 forks source link

[Bug]: No Output / Output doesn't show with Version 2.7.3 #379

Open jafar690 opened 1 month ago

jafar690 commented 1 month ago

Short bug description

any php code that outputs to the console doesn't show

Extended bug description

No response

Your project is not the problem

How to reproduce?

<?php

echo 'Hello World';

when i run the above code, I can't see any output.

Expected behavior

i expect to see Hello World printed out.

Screenshots

image

IDE & Version

2024.2.4

PHP Version

8.2.24

OS and version

Mac OS

Laravel Tinker plugin version

2.7.3

Interpreter type

Local

Laravel Version

v10.48.12

Tinker version

v2.9.0

Psysh version

v0.12.4

Additional Context

No response

Roboroads commented 1 month ago

What happens if you remove 'echo'? (So, just the string)

codeclax commented 1 month ago

I have the same issue.

When I only write 'Hello world'; I get the same result: image