spatie / laravel-web-tinker

Tinker in your browser
https://spatie.be/open-source
MIT License
1.05k stars 68 forks source link

PHP deprecation warning stops web tinker #58

Closed mangrovestudios closed 4 years ago

mangrovestudios commented 4 years ago

I have Laravel 5.8 and after a recent composer update, I find myself seeing this deprecation warning:

PHP Deprecated: The "Doctrine/Common/Inflector/Inflector::pluralize" method is deprecated and will be dropped in doctrine/inflector 2.0.

In web tinker, this results in an inability to produce output for Laravel-related code, e.g.:

echo 'hello';
Model::find(1);

returns

hello
[deprecation warnings..]

In artisan tinker, the above shows the output for Model::find(1) in addition to the warnings.

mangrovestudios commented 4 years ago

Same issue #56

khnRzk commented 3 years ago

Found any solution for this?