We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
With PHPStan, I have the following error: Method App\Entity\User::getPassword() should return string but returns string|null.
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; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:
Instead we should have the code below:
The text was updated successfully, but these errors were encountered: