TypeDetector
FinalYes
Methods
- __construct() : mixed
- detectType() : Type<string|int, mixed>
Methods
__construct()
public
__construct([TypeUnifier $unifier = new StrictUnifier() ][, null|TypeWidener $widener = null ]) : mixed
Parameters
- $unifier : TypeUnifier = new StrictUnifier()
- $widener : null|TypeWidener = null
-
built on the first array value: get_type() constructs a detector per call, and most of them never see an array
detectType()
public
detectType(mixed $value) : Type<string|int, mixed>
Parameters
- $value : mixed