1.2.682. Method Usage¶
This rule reports method usages. The methods that are monitored are set with the parameter
searchFor
.
<?php
// searchFor = \X::foo
function bar(X $arg) {
$arg->foo();
}
?>
Name |
Default |
Type |
Description |
searchFor |
string |
Method to report in the codes : use static syntax to describe them : a::foo(); abc::goo(). |
1.2.682.1. Specs¶
Short name |
Custom/MethodUsage |
Rulesets |
|
Exakat since |
2.5.0 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Medium |
Available in |