Change record status: 
Project: 
Introduced in branch: 
8.x-5.x
Introduced in version: 
8.x-5.9-beta1
Description: 

Numeric element properties are now stored as integers or floats instead of strings.

Instead of storing #minlength, #maxlength, and #size as strings in the below example.

textfield:
  '#type': textfield
  '#title': textfield
  '#minlength': '1'
  '#maxlength': '100'
  '#size': '4'

The properties will be cast as integers.

textfield:
  '#type': textfield
  '#title': textfield
  '#minlength': 1
  '#maxlength': 100
  '#size': 4

Numeric properties include...

  • autocomplete_limit
  • autocomplete_match
  • counter_maximum
  • counter_minimum
  • date_increment
  • default_value
  • flex
  • max
  • maxlength
  • min
  • minlength
  • multiple__add_more_items
  • multiple__empty_items
  • multiple__min_items
  • rows
  • size
  • step

Existing webforms elements with numeric properties will be updated.

Please note, numbers stored as strings will still work as expected because PHP does not require (or support) explicit type definition in variable declaration and also supports type juggling.

Impacts: 
Site builders, administrators, editors
Module developers
Site templates, recipes and distribution developers