Skip to content

Commit 5ecba1f

Browse files
committed
Merge branch '5.1' into 5.x
2 parents eb316fb + 2a6f782 commit 5ecba1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PropertyAccessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private static function throwInvalidArgumentException(string $message, array $tr
224224
}
225225

226226
if (preg_match('/^\S+::\S+\(\): Argument #\d+ \(\$\S+\) must be of type (\S+), (\S+) given/', $message, $matches)) {
227-
list(, $expectedType, $actualType) = $matches;
227+
[, $expectedType, $actualType] = $matches;
228228

229229
throw new InvalidArgumentException(sprintf('Expected argument of type "%s", "%s" given at property path "%s".', $expectedType, 'NULL' === $actualType ? 'null' : $actualType, $propertyPath), 0, $previous);
230230
}
@@ -419,7 +419,7 @@ private function readProperty(array $zval, string $property, bool $ignoreInvalid
419419
try {
420420
$result[self::VALUE] = $object->$name();
421421
} catch (\TypeError $e) {
422-
list($trace) = $e->getTrace();
422+
[$trace] = $e->getTrace();
423423

424424
// handle uninitialized properties in PHP >= 7
425425
if (__FILE__ === $trace['file']

0 commit comments

Comments
 (0)