stable

Clone or download

Read-only

Tracker_FormElement_Field_List unit tests can be executed with PHP 8

Thanks to the saner string to number comparison introduced in PHP 8.0 [0] an incorrect validation has been spotted in this class. The test should now pass with PHP 8.0: make tests-unit-php PHP_VERSION=80 FILES=plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.php Part of request #17931: Unit tests should pass with PHP 8.0 https://www.php.net/releases/8.0/en.php#saner-string-to-number-comparisons Change-Id: Ife4dfe014816aeaa5ebec657c91c39a40b8df7e3

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Field/ListFields/FieldValueMatcher.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.php +4 −8 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_ListTest.php +14 −2 Go to diff View file