laravel / tinker

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

Attempting to get helpers documentation failed, like dock head. #99

Closed corsicanec82 closed 4 years ago

corsicanec82 commented 4 years ago

Description:

An attempt to get documentation, like dock head, in the tinker results in the following error: TypeError: Argument 1 passed to Symfony/Component/Console/Formatter/OutputFormatter::escape() must be of the type string, null given

Steps To Reproduce:

$ php artisan tinker
Psy Shell v0.10.3 (PHP 7.4.4 — cli) by Justin Hileman
>>> doc head
TypeError: Argument 1 passed to Symfony/Component/Console/Formatter/OutputFormatter::escape() must be of the type string, null given
>>> doc last
TypeError: Argument 1 passed to Symfony/Component/Console/Formatter/OutputFormatter::escape() must be of the type string, null given
>>> doc count
function count($var, $mode = unknown)
...
works correctly
...
driesvints commented 4 years ago

Seems to be a bug with psysh. Graham has already openend an issue.

GrahamCampbell commented 4 years ago

This will be fixed by https://github.com/bobthecow/psysh/pull/628.

corsicanec82 commented 4 years ago

Thanks. I will wait for fixes.