]> git.openstreetmap.org Git - nominatim.git/blobdiff - phpcs.xml
replace PHP sizeof() with either count() or empty()
[nominatim.git] / phpcs.xml
index a48b5c3e608db00b6ad24a4e3d979af7537e581d..6b4abc392a8279971f43e6a382708f6b7e6c2aed 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
 
 
 
+  <!-- eval, system, etc -->
+  <rule ref="Generic.PHP.ForbiddenFunctions">
+    <properties>
+      <property name="forbiddenFunctions" type="array" value="sizeof=>count,delete=>unset,print=>echo,create_function=>null,eval=>null"/>
+    </properties>
+  </rule>
+
   <!-- **************************************************************
        DOCUMENTATION
        ************************************************************** -->