Skip to content

Commit

Permalink
Merge pull request #4 from newsuk/fix/improve-typing
Browse files Browse the repository at this point in the history
Improved typing and uses of classes
  • Loading branch information
jonnynews authored Feb 5, 2024
2 parents 71ea2a8 + e23266b commit 4b40381
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NewsUK/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@

<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>

<rule ref="SlevomatCodingStandard.Functions.StaticClosure" />
<rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition" />
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="searchAnnotations" value="true" />
</properties>
</rule>

<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
Expand Down

0 comments on commit 4b40381

Please sign in to comment.