Flow PHP

TypeWidener

Read onlyYes
FinalYes

Methods

__construct()  : mixed
nullable()  : Type<string|int, mixed>
`mixed` has no optional form - it already admits null - so wrapping it would throw from a method that must always answer.
widen()  : Type<string|int, mixed>
widenLists()  : ListType<string|int, mixed>
widenMaps()  : MapType<string|int, mixed>
widenStructures()  : StructureType<string|int, array<string|int, mixed>>

Methods

nullable()

`mixed` has no optional form - it already admits null - so wrapping it would throw from a method that must always answer.

public nullable(Type<string|int, mixed> $type) : Type<string|int, mixed>
Parameters
$type : Type<string|int, mixed>
Return values
Type<string|int, mixed>

widen()

public widen(Type<string|int, mixed> $left, Type<string|int, mixed> $right) : Type<string|int, mixed>
Parameters
$left : Type<string|int, mixed>
$right : Type<string|int, mixed>
Return values
Type<string|int, mixed>

widenMaps()

public widenMaps(MapType<TLeftKey, TLeftValue> $left, MapType<TRightKey, TRightValue> $right) : MapType<string|int, mixed>
Parameters
$left : MapType<TLeftKey, TLeftValue>
$right : MapType<TRightKey, TRightValue>
Tags
template
Return values
MapType<string|int, mixed>
On this page

Search results