glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.16k stars 1.28k forks source link

9.4.5 test failures with PHP 7.4.x #6761

Closed remicollet closed 4 years ago

remicollet commented 4 years ago

Using PHP 7.4.1 and atoum 3.4.0

in tests/units:

> There is 1 error:
=> tests\units\Migration::testAddConfig():
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/units/Migration.php on line 169, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/commondbtm.class.php on line 374:
Trying to access array offset on value of type null

in tests/functionnal:

> There are 9 errors:
=> tests\units\NotificationEventAjax::testRaise():
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationEventAjax.php on line 133, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 455:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationEventAjax.php on line 133, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 456:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationEventAjax.php on line 133, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 457:
Trying to access array offset on value of type bool
=> tests\units\NotificationTargetTicket::testgetDataForObject():
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 106, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 455:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 106, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 456:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 106, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 457:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 115, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 455:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 115, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 456:
Trying to access array offset on value of type bool
==> Error E_NOTICE in /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/tests/functionnal/NotificationTargetTicket.php on line 115, generated by file /dev/shm/BUILD/glpi-b7f90388babf6b621dff121701b69f8d20124e77/inc/notificationtargetticket.class.php on line 457:
Trying to access array offset on value of type bool
cedric-anne commented 4 years ago

Hi,

I've backported PHP 7.4 fixes from 9.5/bugfixes branch in #6783 .

Regards