Skip to content

Commit 3214068

Browse files
Reduce common control flows
1 parent cf99b96 commit 3214068

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Internal/Hydrator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,16 @@ public static function getPropertyScopes($class): array
260260
continue;
261261
}
262262
$name = $property->name;
263+
$readonlyScope = null;
263264

264265
if (\ReflectionProperty::IS_PRIVATE & $flags) {
265-
$readonlyScope = null;
266266
if ($flags & \ReflectionProperty::IS_READONLY) {
267267
$readonlyScope = $class;
268268
}
269269
$propertyScopes["\0$class\0$name"] = $propertyScopes[$name] = [$class, $name, $readonlyScope, $property];
270270

271271
continue;
272272
}
273-
$readonlyScope = null;
274273
if ($flags & \ReflectionProperty::IS_READONLY) {
275274
$readonlyScope = $property->class;
276275
}

0 commit comments

Comments
 (0)