rspec/rules/S2035/php/rule.adoc

33 lines
531 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
This rule allows banning certain PHP functions.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
Given a parameter of ``++foo++`` for this rule:
2022-02-04 17:28:24 +01:00
[source,php]
2021-04-28 16:49:39 +02:00
----
$arr=array("apple", "pear","banana");
echo foo($arr); // Noncompliant
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]