src/Bridge/Doctrine/Common/Filter/SearchFilterTrait.php
protected function hasValidValues(array $values, $type = null): bool
    {
        foreach ($values as $key => $value) {
            if (self::DOCTRINE_INTEGER_TYPE === $type && null !== $value && false === filter_var($value, FILTER_VALIDATE_INT)) {
                return false;
            }
        }

        return true;
    }
protected function hasValidValues(array $values, $type = null): bool
    {
        foreach ($values as $key => $value) {
            if (self::DOCTRINE_INTEGER_TYPE === $type && null !== $value && false === filter_var($value, FILTER_VALIDATE_INT)) {
                return false;
            }
        }

        return true;
    }
protected function hasValidValues ( array $ values , $ type = null ) : bool { foreach ( $ values as $ key => $ value ) { if ( self :: DOCTRINE_INTEGER_TYPE === $ type && null !== $ value && false === filter_var ( $ value , FILTER_VALIDATE_INT ) ) { return false ; } } return true ; }
When the field should be an integer, check that the given value is a valid one.

@param mixed|null $type
When the field should be an integer check that the given value is a valid one .