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:
+1
-1
@@ -2108,7 +2108,7 @@ class Manager extends IPSModule implements ManagerSchnittstelle
|
||||
private function leseAnlagenKonfigurationsliste(string $property): array
|
||||
{
|
||||
$liste = json_decode($this->ReadPropertyString($property), true, 512, JSON_THROW_ON_ERROR);
|
||||
if (!is_array($liste) || !array_is_list($liste)) {
|
||||
if (!is_array($liste) || array_keys($liste) !== array_keys(array_values($liste))) {
|
||||
throw new InvalidArgumentException($property . ' muss eine JSON-Liste sein.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user