Skip to content

Commit

Permalink
Use short array deconstruction syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 28, 2020
1 parent 3718e18 commit e1910f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Caster/ArgsStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Cloner/AbstractCloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ protected function castObject(Stub $stub, $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];
Expand Down
2 changes: 1 addition & 1 deletion Server/DumpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function listen(callable $callback): void
continue;
}

list($data, $context) = $payload;
[$data, $context] = $payload;

$callback($data, $context, $clientId);
}
Expand Down

0 comments on commit e1910f3

Please sign in to comment.