unlimited_number element uses 'radios' as #type but #options is set to NULL.

This has resulted in following PHP warning when element is used.
"Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Render\Element\Radios::processRadios() (line 56 of core/lib/Drupal/Core/Render/Element/Radios.php)."

See https://github.com/dpi/unlimited_number/issues/10

CommentFileSizeAuthor
#2 fix_radios_button_warning.patch837 bytesWeilinggu

Comments

Weilinggu created an issue. See original summary.

Weilinggu’s picture

StatusFileSize
new837 bytes

dpi credited akalata.

dpi’s picture

  • dpi committed 9cc930b on 8.x-1.x authored by akalata
    Issue #3036216 by Weilinggu, akalata: #options as NULL results on PHP 7....
dpi’s picture

Status: Active » Fixed
dpi’s picture

Assigned: Weilinggu » Unassigned

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.