-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Description
Bug report
Hi,
we deployed the latest version of PHPStan, and our log is currently full of this message:
throws checked exception TypeError but it's missing from the PHPDoc @throws tag.
TypeError is not an Exception, it is an Error. Why should it be annotated in PHPDoc?
Thank you
Tomas
Code snippet that reproduces the problem
/**
* Mapovani hodnot na konkretni datove typy
* @param array<string, mixed> $row
* @return void
*/
protected function mapping(array $row): void
{
$this->id = (int) $row[self::ID];
$this->code = $row[self::CODE];
$this->suggest = (bool) $row[self::SUGGEST];
}
https://phpstan.org/r/ce8074ca-a67c-4ea5-92e5-9911a6f96bfb
Expected output
No TypeError errirs
Did PHPStan help you today? Did it make you happy in any way?
Usually it makes me happy every day, but not today :)
Metadata
Metadata
Assignees
Labels
No labels