Flugg\Responder\Traits\ConvertsParameters::castBooleans PHP Method

castBooleans() protected method

Cast all string booleans to real boolean values.
protected castBooleans ( mixed $input ) : array
$input mixed
return array
    protected function castBooleans($input) : array
    {
        if ($this->castToBooleanIsDisabled()) {
            return;
        }
        $casted = [];
        foreach ($input as $key => $value) {
            $casted[$key] = $this->castValueToBoolean($value);
        }
        return $casted;
    }