laravel-tinker: [Bug]: output gets printed twice

Short bug description

the output always gets printed twice

Extended bug description

it looks like it has something to do with the latest changes to version 2.5.0

How to reproduce?

function test()
{
    return 'test';
}
return test();

Expected behavior

see output only once

Screenshots

image

IDE & Version

phpstorm 2022.3

PHP Version

8.1

OS and version

Linux

Laravel Tinker plugin version

2.5.0

Interpreter type

{“label”=>“Docker (NOT compose)”}

Laravel Version

9

Tinker version

2.5.0

Psysh version

v0.11.9

Additional Context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 27 (14 by maintainers)

Most upvoted comments

Same, haha, but I got you another build to test something. This will tell me if it’s in the plugins kotlin code orsomewhere in PHP.

Laravel Tinker-2.5.1+1.zip

I added some <%> to the output. the amount of them will tell me a lot.

Good night, I’m also hitting the sack, talk to you later 😃

I’ll make a build for you to test something. One sec

here´s my php interpreter setup, maybe you see something strange:

image