src/Traits/ConvertsParameters.php
protected function castBooleans($input):array
    {
        if ($this->castToBooleanIsDisabled()) {
            return [];
        }

        $casted = [];

        foreach ($input as $key => $value) {
            $casted[$key] = $this->castValueToBoolean($value);
        }

        return $casted;
    }
protected function castBooleans($input):array
    {
        if ($this->castToBooleanIsDisabled()) {
            return [];
        }

        $casted = [];

        foreach ($input as $key => $value) {
            $casted[$key] = $this->castValueToBoolean($value);
        }

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

@param  mixed $input
@return array
Cast all string booleans to real boolean values .