Open
Description
Hi,
With PHPStan, I have the following error:
Method App\Entity\User::getPassword() should return string but returns string|null.
The generated code is as follows:
// src/Entity/User.php
public function getPassword(): string
{
return $this->password;
}
Instead we should have the code below:
// src/Entity/User.php
public function getPassword(): ?string
{
return $this->password;
}
Metadata
Assignees
Labels
No labels