Skip to content

Commit 87690da

Browse files
committed
Fixes issue suppression
1 parent 79670bb commit 87690da

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.editorconfig export-ignore
22
.gitattributes export-ignore
33
.gitignore export-ignore
4+
.psalm.xml export-ignore

src/Analyzers/PresentationModelAnalyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public static function afterStatementAnalysis(
4848
IssueBuffer::accepts(new InvalidPresentationModelFieldCasing(
4949
"'{$name}' must use `snake_casing`, as per Twig's coding standards",
5050
$property->location
51-
));
51+
), $class->suppressed_issues);
5252
}
5353

5454
if ($property->visibility !== ClassLikeAnalyzer::VISIBILITY_PROTECTED) {
5555
IssueBuffer::accepts(new InvalidPresentationModelFieldVisibility(
5656
"'{$name}' must be `protected` to preserve the presentation model's immutability, while allowing access from the PresentationModel base class",
5757
$property->location
58-
));
58+
), $class->suppressed_issues);
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)