rspec/rules/S2002/php/rule.adoc
2021-04-28 18:08:03 +02:00

18 lines
389 B
Plaintext

Just as pain is your body's way of telling you something is wrong, errors are PHP's way of telling you there's something you need to fix. Neither pain, nor PHP errors should be ignored.
== Noncompliant Code Example
----
@doSomethingDangerous($password); // Noncompliant; '@' silences errors from function call
----
== Compliant Solution
----
doSomethingDangerous($password);
----