1.2.437. Extended Typehints

Produces all the definition links between typehints (arguments, return types, properties) and the definitions that are valid with the typehint.

<?php

function foo(A $A) {}

// This is the raw definition of the above typehint
interface A {}

// This is valid definition of the above typehint
class X implements A {}
// This is valid definition of the above typehint
class Y extends X {}

// This is not related to the typehint
class Z {}

?>

1.2.437.1. Specs

Short name

Complete/ExtendedTypehints

Rulesets

All, Changed Behavior, NoDoc

Exakat since

2.1.4

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

typehint

Available in

Entreprise Edition, Exakat Cloud