rspec/rules/S6331/php/rule.adoc

20 lines
277 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,php]
----
"/foo()/" // Noncompliant, will match only 'foo'
----
=== Compliant solution
[source,php]
----
"/foo\(\)/" // Matches 'foo()'
----
include::../implementation.adoc[]