protected function configureIntegerProperty($property, OptionsResolver $resolver)
    {
        $resolver
            ->setAllowedTypes($property, ['integer', 'numeric'])
            ->setNormalizer($property, function (Options $options, $value) {
                return is_int($value) ? $value : intval($value);
            });
    }
protected function configureIntegerProperty($property, OptionsResolver $resolver)
    {
        $resolver
            ->setAllowedTypes($property, ['integer', 'numeric'])
            ->setNormalizer($property, function (Options $options, $value) {
                return is_int($value) ? $value : intval($value);
            });
    }
protected function configureIntegerProperty ( $ property , OptionsResolver $ resolver ) { $ resolver -> setAllowedTypes ( $ property , [ 'integer' , 'numeric' ] ) -> setNormalizer ( $ property , function ( Options $ options , $ value ) { return is_int ( $ value ) ? $ value : intval ( $ value ) ; } ) ; }
Configures an integer property for OptionsResolver

@param string          $property
@param OptionsResolver $resolver
Configures an integer property for OptionsResolver