1.2.1229. 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.1229.1. Specs

Short name

Dump/Typehintorder

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

2.0.2

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

typehint

Available in

Entreprise Edition, Community Edition, Exakat Cloud