Skip to content

Commit bf952a3

Browse files
authored
Add Psalm annotations to ruleset.xml (#2)
This pull request adds Psalm annotations to the ruleset.xml file, which overrides PHP docBlocks. The annotations include @psalm-consistent-constructor, @psalm-import-type, @psalm-method, @psalm-property, @psalm-param, @psalm-return, and @psalm-throws. This will improve the static analysis of the codebase and help catch potential issues early on.
1 parent 325f60c commit bf952a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Syntatis/ruleset.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
@uses"
7070
/>
7171
<!-- Psalm annotations essentially overrides PHP docBlocks -->
72-
<element value="@phpstan-consistent-constructor, @phpstan-import-type, @phpstan-type"/>
72+
<element value="@phpstan-consistent-constructor, @phpstan-import-type, @phpstan-type, @psalm-consistent-constructor, @psalm-import-type, @phpstan-type"/>
7373
<element value="@template, @template-implements, @template-extends"/>
7474
<element value="@example, @see, @link, @todo"/>
7575
<element value="@method, @property"/>
76-
<element value="@phpstan-method, @phpstan-property"/>
76+
<element value="@phpstan-method, @phpstan-property, @psalm-method, @psalm-property"/>
7777
<element value="@param, @throws, @return"/>
78-
<element value="@phpstan-param, @phpstan-return, @phpstan-throws"/>
78+
<element value="@phpstan-param, @phpstan-return, @phpstan-throws, @psalm-param, @psalm-return, @psalm-throws"/>
7979
</property>
8080
</properties>
8181
</rule>

0 commit comments

Comments
 (0)