Skip to content

Commit 627ee56

Browse files
authored
Remove setAccessible call for class properties (#114)
Removed unnecessary call to setAccessible on property. Since PHP 8.1 it is not needed. Since PHP 8.5 it is deprecated.
1 parent 86f48b9 commit 627ee56

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Serializers/Native.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ public static function wrapClosures(&$data, $storage)
273273
continue;
274274
}
275275

276-
$property->setAccessible(true);
277-
278276
if (! $property->isInitialized($instance)) {
279277
continue;
280278
}

0 commit comments

Comments
 (0)