1.2.1088. Set Class Remote Definition With Parenthesis¶
Links methodcall, properties and constants to its definition, based to the new in the parenthesis. The link is DEFINITION
.
<?php
class x {
public function bar() { }
}
function foo() {
// This links to class x, method bar(), thanks to the new.
return (new x)->bar();
}
?>
1.2.1088.1. Specs¶
Short name |
Complete/SetClassRemoteDefinitionWithParenthesis |
Rulesets |
|
Exakat since |
1.9.3 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |