Skip to content

RowCaster ​

php
final class StanislasPoisson\FrenchPostalCode\Core\RowCaster

Gives the values of a row the type their column has, so that every database receives numbers as numbers.

Source: src/Core/RowCaster.php

Methods ​

cast() ​

php
public function cast(array $row, array $types): array
ParameterDescription
$typesthe Table Schema type of each column

Returns array<string, float|int|string|null>

Documentation of 5.0.2 , built from 38dcb21 on 5.0.2 by pipeline #45218049158 on 2026-11-23.