diff --git a/Caster/ArgsStub.php b/Caster/ArgsStub.php index 591c7e2a..f8b485bd 100644 --- a/Caster/ArgsStub.php +++ b/Caster/ArgsStub.php @@ -24,7 +24,7 @@ class ArgsStub extends EnumStub public function __construct(array $args, string $function, ?string $class) { - list($variadic, $params) = self::getParameters($function, $class); + [$variadic, $params] = self::getParameters($function, $class); $values = []; foreach ($args as $k => $v) { diff --git a/Cloner/AbstractCloner.php b/Cloner/AbstractCloner.php index eee19cd6..ee9abd34 100644 --- a/Cloner/AbstractCloner.php +++ b/Cloner/AbstractCloner.php @@ -305,7 +305,7 @@ protected function castObject(Stub $stub, bool $isNested) $stub->class = get_debug_type($obj); } if (isset($this->classInfo[$class])) { - list($i, $parents, $hasDebugInfo, $fileInfo) = $this->classInfo[$class]; + [$i, $parents, $hasDebugInfo, $fileInfo] = $this->classInfo[$class]; } else { $i = 2; $parents = [$class]; diff --git a/Server/DumpServer.php b/Server/DumpServer.php index 3e6343e3..28decf31 100644 --- a/Server/DumpServer.php +++ b/Server/DumpServer.php @@ -75,7 +75,7 @@ public function listen(callable $callback): void continue; } - list($data, $context) = $payload; + [$data, $context] = $payload; $callback($data, $context, $clientId); }