Skip to content

Error: "Cannot read properties of null (reading 'pop')" #108

@quyle92

Description

@quyle92

When I tried to import a class, there was a toast message saying : "Cannot read properties of null (reading 'pop')".

<php
use App\Models\{
    Condition,
    Effect,
}
$statuses = Status::select(['id', 'name'])->get();
$conditions = Condition::getData();
$prompts = Prompt::getData();

Prompt has the same namespace as the other 2, but it could not be imported.
it seems it does not works when using PSR12 nested group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions