rspec/rules/S2041/php/rule.adoc

27 lines
569 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!";
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]