1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Merge pull request #9303 from weirdan/allow-suppressing-MissingThrowsDocblock-for-individual-exceptions

This commit is contained in:
Bruce Weirdan 2023-02-15 03:40:18 -04:00 committed by GitHub
commit efc389bfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,7 @@
<xs:element name="MissingPropertyType" type="PropertyIssueHandlerType" minOccurs="0" />
<xs:element name="MissingReturnType" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingTemplateParam" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingThrowsDocblock" type="IssueHandlerType" minOccurs="0" />
<xs:element name="MissingThrowsDocblock" type="ClassIssueHandlerType" minOccurs="0" />
<xs:element name="MixedArgument" type="ArgumentIssueHandlerType" minOccurs="0" />
<xs:element name="MixedArgumentTypeCoercion" type="ArgumentIssueHandlerType" minOccurs="0" />
<xs:element name="MixedArrayAccess" type="IssueHandlerType" minOccurs="0" />

View File

@ -736,6 +736,7 @@ abstract class FunctionLikeAnalyzer extends SourceAnalyzer
$possibly_thrown_exception . ' is thrown but not caught - please either catch'
. ' or add a @throws annotation',
$codelocation,
$possibly_thrown_exception,
),
);
}

View File

@ -2,7 +2,7 @@
namespace Psalm\Issue;
final class MissingThrowsDocblock extends CodeIssue
final class MissingThrowsDocblock extends ClassIssue
{
public const SHORTCODE = 169;
}