mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Ensure @throws annotations reference valid Exception classes
This commit is contained in:
parent
44785fadfc
commit
844d7999c5
@ -405,6 +405,7 @@ class FunctionDocblockManipulator
|
||||
$inferredThrowsClause = array_reduce(
|
||||
$this->throwsExceptions,
|
||||
function (string $throwsClause, string $exception) {
|
||||
$exception = '\\' . $exception;
|
||||
return $throwsClause === '' ? $exception : $throwsClause.'|'.$exception;
|
||||
},
|
||||
''
|
||||
|
Loading…
x
Reference in New Issue
Block a user