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

19 lines
408 B
Plaintext

``++echo++`` can be called with or without parentheses, but it is best practice to leave parentheses off the call because using parentheses with multiple arguments will result in a parse error.
== Noncompliant Code Example
----
echo("Hello"); // Noncompliant, but it works
echo("Hello", "World"); // Noncompliant. Parse error
----
== Compliant Solution
----
echo "Hello";
echo "Hello","World!";
----