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:
@@ -128,7 +128,7 @@ trait ManagerSDLTrait
|
||||
);
|
||||
}
|
||||
$alt = json_decode(IPS_GetProperty($instanzID, 'Config'), true, 512, JSON_THROW_ON_ERROR);
|
||||
if (!is_array($alt) || !array_is_list($alt)) {
|
||||
if (!is_array($alt) || array_keys($alt) !== array_keys(array_values($alt))) {
|
||||
throw new RuntimeException('Die bestehende Energiefluss-Konfiguration ist keine Liste.');
|
||||
}
|
||||
$neu = [];
|
||||
|
||||
Reference in New Issue
Block a user