rspec/rules/S6331/php/rule.adoc

18 lines
249 B
Plaintext
Raw Normal View History

include::../description.adoc[]
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,php]
----
"/foo()/" // Noncompliant, will match only 'foo'
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,php]
----
"/foo\(\)/" // Matches 'foo()'
----
include::../implementation.adoc[]