Skip to content

Commit 481886e

Browse files
committed
Fix CS
1 parent f33b123 commit 481886e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private function readProperty(array $zval, string $property, bool $ignoreInvalid
428428
// handle uninitialized properties in PHP >= 7.4
429429
if (\PHP_VERSION_ID >= 70400 && preg_match('/^Typed property ([\w\\\]+)::\$(\w+) must not be accessed before initialization$/', $e->getMessage(), $matches)) {
430430
$r = new \ReflectionProperty($matches[1], $matches[2]);
431-
$type= ($type = $r->getType()) instanceof \ReflectionNamedType ? $type->getName() : (string) $type;
431+
$type = ($type = $r->getType()) instanceof \ReflectionNamedType ? $type->getName() : (string) $type;
432432

433433
throw new UninitializedPropertyException(sprintf('The property "%s::$%s" is not readable because it is typed "%s". You should initialize it or declare a default value instead.', $r->getDeclaringClass()->getName(), $r->getName(), $type), 0, $e);
434434
}

0 commit comments

Comments
 (0)