fix(compat): preserve PHP 8.0 support without changing control guards
Tests / test (push) Successful in 59s
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user