1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Avoid use of PHP 7.4 feature

This commit is contained in:
J. King 2022-04-23 17:24:25 -04:00
parent 2489743d0f
commit 33a3478a58

View file

@ -91,9 +91,9 @@ class TestContext extends \JKingWeb\Arsse\Test\AbstractTest {
'editionRange' => [[1, 100], [1, 100]],
];
foreach($tests as $k => $t) {
yield $k => [$k, ...$t, false];
yield $k => array_merge([$k], $t, [false]);
if (method_exists(ExclusionContext::class, $k)) {
yield "$k (not)" => [$k, ...$t, true];
yield "$k (not)" => array_merge([$k], $t, [true]);
}
}
}