original_string: protected function configureBooleanProperty($property, OptionsResolver $resolver)
      {
          $resolver
              ->setAllowedTypes($property, ['bool', 'string'])
              ->setAllowedValues($property, [true, false, 'true', 'false'])
              ->setNormalizer($property, function (Options $options, $value) {
                  return is_bool($value) ? $value : ($value === 'true' ? true : false);
              });
      }
code: protected function configureBooleanProperty($property, OptionsResolver $resolver)
      {
          $resolver
              ->setAllowedTypes($property, ['bool', 'string'])
              ->setAllowedValues($property, [true, false, 'true', 'false'])
              ->setNormalizer($property, function (Options $options, $value) {
                  return is_bool($value) ? $value : ($value === 'true' ? true : false);
              });
      }
code_tokens: protected function configureBooleanProperty ( $ property , OptionsResolver $ resolver ) { $ resolver -> setAllowedTypes ( $ property , [ 'bool' , 'string' ] ) -> setAllowedValues ( $ property , [ true , false , 'true' , 'false' ] ) -> setNormalizer ( $ property , function ( Options $ options , $ value ) { return is_bool ( $ value ) ? $ value : ( $ value === 'true' ? true : false ) ; } ) ; }
docstring: Configures a boolean property for OptionsResolver
  
  @param string          $property
  @param OptionsResolver $resolver
docstring_tokens: Configures a boolean property for OptionsResolver