1.2.1238. Typehint Order¶
Topological order, based on typehints.
Each function, method that use typehint is a link between a type of data and another one. The argument typehint acts as a filter, and the returned type hint is the next step.
<?php
// This library imposes the following order : A -> B -> C
function foo(A $a) : B { }
function bar(B $b) : C { }
?>
1.2.1238.1. Connex PHP features¶
1.2.1238.1.1. Specs¶
Short name |
Dump/Typehintorder |
Rulesets |
|
Exakat since |
2.0.2 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |