laravel / tinker

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

PHP Error: Call to a member function make() on null #145

Closed Brenneisen closed 2 years ago

Brenneisen commented 2 years ago

Description:

I get the following error when running custom commands with laravel/tinker 2.7.1 and laravel/framework 9.5.1. With 2.7.0 it still works.

PHP Error: Call to a member function make() on null in /home/vagrant/workspace/Falcon/backend/vendor/laravel/framework/src/Illuminate/Console/Command.php on line 116

driesvints commented 2 years ago

I'll check in on this tomorrow but it feels odd that the Laravel application isn't set for your command.

Brenneisen commented 2 years ago

Seems to be related to https://github.com/laravel/tinker/pull/144.

driesvints commented 2 years ago

@Brenneisen everything works fine for me on these versions. I'll need specific instructions on how to reproduce this.

Brenneisen commented 2 years ago

@driesvints Here are the steps to reproduce this.

Bildschirmfoto 2022-03-17 um 12 01 00 Bildschirmfoto 2022-03-17 um 12 03 05 Bildschirmfoto 2022-03-17 um 12 06 09 Bildschirmfoto 2022-03-17 um 12 13 22 Bildschirmfoto 2022-03-17 um 12 08 58
driesvints commented 2 years ago

Thank you, I can now see the issue. I've sent in a fix here: https://github.com/laravel/tinker/pull/146