Typed property AppEntityX:X must not be accessed before initialization

I’m trying to upgrade my Symfony from 5.4 to 6.4 and PHP from 7.4 to 8.4. I almost did all changes but I’m currently blocked on this exception :

Typed property AppEntityAppRole::$uniqid must not be accessed before initialization

I already did my researchs and found that private properties must be initialized, so this is what I did :

#[ORMColumn(name: "uniqid", type: "string", length: 50, nullable: false)]
private ?string $uniqid = null;
public function getUniqid(): ?string
{
    return $this->uniqid;
}

public function setUniqid(string $uniqid): self
{
    $this->uniqid = $uniqid;

    return $this;
}

So I don’t understand where comes my error ?

The error trace shows that it comes from the findAll() repository function.

Did I missed something ?

I also cleared the cache but does nothing.

Thanks