fix(compat): preserve PHP 8.0 support without changing control guards
Tests / test (push) Successful in 59s

Replace trait constants and array_is_list usage with equivalent PHP 8.0 constructs. Add strict list/expiry regressions and make isolated reflection tests PHP 8.0 compatible. No control activation, threshold or configuration change.
This commit is contained in:
dh
2026-10-08 07:24:19 +00:00
parent d42cfb3342
commit 86834bb8aa
10 changed files with 152 additions and 11 deletions
+1
View File
@@ -26,6 +26,7 @@ $battery->props = [
'LeistungsRegisterVariableID' => 3, 'Aenderungssperre' => 0,
];
$method = new ReflectionMethod(Batterie::class, 'schreibeRegister');
if (PHP_VERSION_ID < 80100) $method->setAccessible(true);
$accepted = false; $writes = [];
try { $method->invoke($battery, 12000, false); throw new LogicException('FALSE was accepted'); }
catch (RuntimeException $error) {