laravel/tinker

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

Brenneisen opened this issue · 5 comments

  • Tinker Version: 2.7.1
  • Laravel Version: 9.5.1
  • PHP Version: 8.1.3
  • Database Driver & Version:

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

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

Seems to be related to #144.

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

@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

Thank you, I can now see the issue. I've sent in a fix here: #146