Forbid assert() in code base

[MAILPOET-4258]
This commit is contained in:
David Remer
2022-11-24 16:04:39 +02:00
committed by Jan Lysý
parent 173f347431
commit cd1f06b116

View File

@@ -32,6 +32,12 @@
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="assert=>null"/>
</properties>
</rule>
<!-- Namespaces - "use" statements -->
<rule ref="PSR2.Namespaces.UseDeclaration"/> <!-- One namespace per use, one blank line after final use statement -->
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>