Announcement icon Drupal 7 will officially reach its End of Life on 5 January 2025. This date marks the 14-year anniversary since Drupal 7 was released on 5 January 2011. It is recommended to migrate your site as soon as possible.
Closed (duplicate)
Project:
Drupal core
Version:
8.4.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
PHP 7.2 about tags
PHP 7.2

The issue particularly affects sites running on PHP version 7.2.0 or later.

Reporter:
Created:
25 Dec 2017 at 09:14 UTC
Updated:
25 Feb 2018 at 20:44 UTC

While install Drupal 8.4.3 in PHP 7.2 environment, this warning is occurred.

Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\Core\Form\FormValidator->doValidateForm() (line 260 of core/lib/Drupal/Core/Form/FormValidator.php). Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 239) Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 239) Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 239) Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'install_configure_form') (Line: 119) Drupal\Core\Form\FormValidator->validateForm('install_configure_form', Array, Object) (Line: 571) Drupal\Core\Form\FormBuilder->processForm('install_configure_form', Array, Object) (Line: 314) Drupal\Core\Form\FormBuilder->buildForm('install_configure_form', Object) (Line: 899) install_get_form('Drupal\Core\Installer\Form\SiteConfigureForm', Array) (Line: 593) install_run_task(Array, Array) (Line: 549) install_run_tasks(Array) (Line: 117) install_drupal(Object) (Line: 44) CommentFileSizeAuthor #7 count-warnings-php72-2932916-7.patch 6.82 KB oriol_e9g tibezh Credit Attribution: tibezh at OPTASY , Drupal Ukraine Community commented

Well, although related, I don't think it's a duplicate and the other issue was fixed and was for some tests.

This happened for me as well and it's on the actual code, not tests. I still think is valid.