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, array<int, mixed>>
widenMaps()  : MapType<string|int, array<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>

widenLists()

public widenLists(ListType<string|int, array<int, TLeft>> $left, ListType<string|int, array<int, TRight>> $right) : ListType<string|int, array<int, mixed>>
Parameters
$left : ListType<string|int, array<int, TLeft>>
$right : ListType<string|int, array<int, TRight>>
Tags
template
Return values
ListType<string|int, array<int, mixed>>
On this page

Search results