Skip to content

Commit c37d8c2

Browse files
committed
Error identifier
1 parent cd5511b commit c37d8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Exceptions/ThrowExprTypeRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function processNode(Node $node, Scope $scope): array
5555
RuleErrorBuilder::message(sprintf(
5656
'Invalid type %s to throw.',
5757
$foundType->describe(VerbosityLevel::typeOnly()),
58-
))->build(),
58+
))->identifier('throw.notThrowable')->build(),
5959
];
6060
}
6161

0 commit comments

Comments
 (0)