lucid icon indicating copy to clipboard operation
lucid copied to clipboard

Features not working with Laravel 9

Open misog opened this issue 2 years ago • 1 comments

Hi, when calling $this->serve(new AbcFeature()); this error occurs:

Illegal offset type in isset or empty

In file vendor / laravel / framework / src / Illuminate / Container / Container.php : 1285

error

I tried with trait Lucid\Bus\ServesFeatures and with controller Lucid\Units\Controller, both ways produce the error.

Feature alone works:

new AbcFeature(); // ok
(new AbcFeature())->handle(); // ok

PHP 8.1.3 Laravel 9.16.0

misog avatar Jun 04 '22 18:06 misog

$this->serve(AbcFeature::class)

sheeraz-faheem avatar Jun 14 '22 10:06 sheeraz-faheem