Skip to content

Bug: Assigning null to ?array $identities property without proper handling #1301

@WCrash7

Description

@WCrash7

the $identities property is correctly declared as nullable array:

private ?array $identities = null;

However, in several places, we directly assign null like these:

public function setIdentities(array $identities): void

$this->identities = null;

TypeError: CodeIgniter\Shield\Entities\User::setIdentities(): Argument 1 ($identities) must be of type array, null given,

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