1.2.1089. Set Class Remote Definition With Typehint¶
Links method calls, properties static or not, and constants to their definition, thanks to typed arguments. The link is DEFINITION
.
<?php
class x {
public function bar() { }
}
function foo(x $a) {
// This links to class x, method bar(), thanks to the typehint.
return $a->bar();
}
?>
1.2.1089.1. Specs¶
Short name |
Complete/SetClassRemoteDefinitionWithTypehint |
Rulesets |
|
Exakat since |
1.9.3 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |