Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features not working with Laravel 9 #38

Open
misog opened this issue Jun 4, 2022 · 1 comment
Open

Features not working with Laravel 9 #38

misog opened this issue Jun 4, 2022 · 1 comment

Comments

@misog
Copy link

misog commented Jun 4, 2022

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

@sheeraz-faheem
Copy link

sheeraz-faheem commented Jun 14, 2022

$this->serve(AbcFeature::class)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants