zendframework / zend-db

Db component from Zend Framework
BSD 3-Clause "New" or "Revised" License
101 stars 122 forks source link

fix Trying to access array offset on value of type null #395

Closed remicollet closed 4 years ago

remicollet commented 5 years ago

With 7.4.0RC3

There were 2 errors:

1) ZendTest\Db\RowGateway\AbstractRowGatewayTest::testDelete
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-db-2.10.0-2.fc29.remi.x86_64/usr/share/php/Zend/Db/RowGateway/AbstractRowGateway.php:207
/dev/shm/BUILD/zend-db-77022f06f6ffd384fa86d22ab8d8bbdb925a1e8e/test/unit/RowGateway/AbstractRowGatewayTest.php:257

2) ZendTest\Db\TableGateway\AbstractTableGatewayTest::testSelectWithNoWhere
Trying to access array offset on value of type null

/dev/shm/BUILDROOT/php-zendframework-zend-db-2.10.0-2.fc29.remi.x86_64/usr/share/php/Zend/Db/TableGateway/AbstractTableGateway.php:219
/dev/shm/BUILDROOT/php-zendframework-zend-db-2.10.0-2.fc29.remi.x86_64/usr/share/php/Zend/Db/TableGateway/AbstractTableGateway.php:208
/dev/shm/BUILDROOT/php-zendframework-zend-db-2.10.0-2.fc29.remi.x86_64/usr/share/php/Zend/Db/TableGateway/AbstractTableGateway.php:196
/dev/shm/BUILD/zend-db-77022f06f6ffd384fa86d22ab8d8bbdb925a1e8e/test/unit/TableGateway/AbstractTableGatewayTest.php:163
michalbundyra commented 4 years ago

Thanks, @remicollet!