rspec/rules/S2002/php/rule.adoc

18 lines
389 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
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.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
@doSomethingDangerous($password); // Noncompliant; '@' silences errors from function call
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
doSomethingDangerous($password);
----