[TASK] Unit test fails with recent PHP releases