Flow PHP

MysqliTypesMap implements NativeTypes

Read onlyYes
FinalYes

Interfaces

NativeTypes

Methods

toFlowType()  : null|Type<string|int, mixed>
mysqli_result::fetch_fields() reports an integer type constant per column.

Methods

toFlowType()

mysqli_result::fetch_fields() reports an integer type constant per column.

public toFlowType(int|string|null $native) : null|Type<string|int, mixed>

MYSQLI_TYPE_CHAR is an alias of MYSQLI_TYPE_TINY (both 1) - listing both is a duplicate-arm fatal. MYSQLI_TYPE_VARCHAR does not exist in PHP 8.3. TINY maps to integer, not boolean: the result route is told a type constant, not a display width, so tinyint(1) and tinyint(4) are indistinguishable.

Parameters
$native : int|string|null
Return values
null|Type<string|int, mixed>

null when this adapter has no Flow type for the driver type

On this page

Search results