ci: disallow the sizeof function in linter (#4134)

This commit is contained in:
Dag 2024-06-18 20:22:46 +02:00 committed by GitHub
parent 0eac7a0784
commit 206bebc7bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 28 additions and 20 deletions

View file

@ -35,6 +35,14 @@
</properties>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
</property>
</properties>
</rule>
<!-- Duplicate class names are not allowed -->
<rule ref="Generic.Classes.DuplicateClassName"/>