Skip to content

Commit

Permalink
Prevent coding-standard from requiring native typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed May 6, 2020
1 parent 9c9194e commit 043cb81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@
<exclude-pattern>lib/Doctrine/Common</exclude-pattern>
<exclude-pattern>tests/Doctrine/Tests/Common</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<properties>
<property name="enableNativeTypeHint" value="false" />
<property name="traversableTypeHints" type="array">
<element value="Traversable"/>
<element value="Iterator"/>
<element value="IteratorAggregate"/>
<element value="Doctrine\Common\Collections\Collection"/>
</property>
</properties>
</rule>
</ruleset>

0 comments on commit 043cb81

Please sign in to comment.