Skip to content

Features not working with Laravel 9 #38

@misog

Description

@misog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions