zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

fix for PHP 7.2, count(): Parameter must be an array or an object tha… #190

Closed remicollet closed 7 years ago

remicollet commented 7 years ago

…t implements Countable

With PHP 7.2.0beta2

There was 1 error:

1) ZendTest\Validator\File\UploadTest::testGetFilesReturnsEmptyArrayAfterSetFilesIsCalledWithNull
count(): Parameter must be an array or an object that implements Countable

/dev/shm/BUILDROOT/php-zendframework-zend-validator-2.9.2-1.fc25.remi.x86_64/usr/share/php/Zend/Validator/File/Upload.php:112
/dev/shm/BUILD/zend-validator-a58dbe8463b93de0d650e296d56cb7da4a129ff3/test/File/UploadTest.php:237
weierophinney commented 7 years ago

Duplicate of #175