zendframework / zend-form

Form component from Zend Framework
BSD 3-Clause "New" or "Revised" License
69 stars 87 forks source link

fix Trying to access array offset on value of type null (7.4) #235

Closed remicollet closed 5 years ago

remicollet commented 5 years ago
There were 8 errors:

1) ZendTest\Form\Element\CollectionTest::testDoesNotCreateNewObjects
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/Element/CollectionTest.php:442

2) ZendTest\Form\Element\CollectionTest::testCreatesNewObjectsIfSpecified
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/Element/CollectionTest.php:494

3) ZendTest\Form\FormTest::testFormBaseFieldsetBindValuesWithoutInputs
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:866

4) ZendTest\Form\FormTest::testCanCorrectlyPopulateDataToComposedEntities
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:1153

5) ZendTest\Form\FormTest::testCanCorrectlyPopulateDataToOneToManyEntites
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:1202

6) ZendTest\Form\FormTest::testCorrectlyHydrateBaseFieldsetWhenHydratorThatDoesNotIgnoreInvalidDataIsUsed
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:1612

7) ZendTest\Form\FormTest::testPreserveEntitiesBoundToCollectionAfterValidation
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:1694

8) ZendTest\Form\FormTest::testShouldHydrateEmptyCollection
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:367
/dev/shm/BUILDROOT/php-zendframework-zend-form-2.14.2-1.fc29.remi.x86_64/usr/share/php/Zend/Form/Form.php:519
/dev/shm/BUILD/zend-form-284f51cf26af2d3d88936fd8b74d46853550b718*/test/FormTest.php:2349
remicollet commented 5 years ago

@webimpress thankf for the CS

michalbundyra commented 5 years ago

Thanks, @remicollet!