rspec/rules/S2757/php/code-example.adoc

9 lines
172 B
Plaintext
Raw Normal View History

[source,php]
----
$target = -5;
$num = 3;
$target =- $num; // Noncompliant: target = -3. Is that the expected behavior?
$target =+ $num; // Noncompliant: target = 3
----