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:
commit
efc389bfa8
@ -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" />
|
||||
|
@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Psalm\Issue;
|
||||
|
||||
final class MissingThrowsDocblock extends CodeIssue
|
||||
final class MissingThrowsDocblock extends ClassIssue
|
||||
{
|
||||
public const SHORTCODE = 169;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user