TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count()

Created on 24 January 2022, over 2 years ago
Updated 6 September 2023, 10 months ago

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 355 of /modules/contrib/stacks/src/WidgetAdmin/Step/StepOne.php)
#0 /modules/contrib/stacks/src/WidgetAdmin/Step/StepOne.php(355): count()
#1 /modules/contrib/stacks/src/WidgetAdmin/Step/StepOne.php(104): Drupal\stacks\WidgetAdmin\Step\StepOne::selectWidgetType()
#2 /modules/contrib/stacks/src/WidgetAdmin/Form/WidgetFormAdmin.php(81): Drupal\stacks\WidgetAdmin\Step\StepOne->buildStepFormElements()

php 8

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡·Argentina hanoii πŸ‡¦πŸ‡·UTC-3

    Thanks! I personally don't like casting as a way to sort issues, I rather make sure that the issues don't happen or add proper conditionals. Most of this have been fixed as part of d10 compatibility work which will soon be released.

Production build 0.69.0 2024