File tree Expand file tree Collapse file tree
src/Psalm/Internal/Analyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646use Psalm \Issue \MissingParamType ;
4747use Psalm \Issue \MissingPureAnnotation ;
4848use Psalm \Issue \MissingThrowsDocblock ;
49+ use Psalm \Issue \ParadoxicalCondition ;
4950use Psalm \Issue \ReferenceConstraintViolation ;
5051use Psalm \Issue \ReservedWord ;
5152use Psalm \Issue \UnresolvableConstant ;
@@ -1358,7 +1359,7 @@ private function processParams(
13581359 } else {
13591360 if ($ param_type ->isVoid ()) {
13601361 IssueBuffer::maybeAdd (
1361- new ReservedWord (
1362+ new ParadoxicalCondition (
13621363 'Parameter cannot be void ' ,
13631364 $ function_param ->type_location ,
13641365 'void ' ,
@@ -1369,7 +1370,7 @@ private function processParams(
13691370
13701371 if ($ param_type ->isNever ()) {
13711372 IssueBuffer::maybeAdd (
1372- new ReservedWord (
1373+ new ParadoxicalCondition (
13731374 'Parameter cannot be never ' ,
13741375 $ function_param ->type_location ,
13751376 'never ' ,
You can’t perform that action at this time.
0 commit comments