1.2.1080. Set Array Class Definition¶
Link arrays with their related method definition.
PHP accepts an array structure such as [class, method]
, or [$object, method]
as a valid method callback. This analysis builds such relations, whenever they are static.
<?php
class x {
public function foo() {}
}
// designate the foo method in the x class
$f = [\x, 'foo'];
array_
?>
See also class.
1.2.1080.1. Connex PHP features¶
1.2.1080.1.1. Specs¶
Short name |
Complete/SetArrayClassDefinition |
Rulesets |
|
Exakat since |
1.9.3 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |