Skip to content

Commit

Permalink
Fix codestyle for PHP 8.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Sep 28, 2022
1 parent 42329f0 commit 1e0ca8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function process(
private function processObject(object $haystack, int $level, array $trackedInstanceHashes = []): array
{
$values = [];
if (!$haystack instanceof \stdClass && class_exists(get_class($haystack))) {
if (!$haystack instanceof \stdClass && class_exists($haystack::class)) {
$ref = new \ReflectionClass($haystack);
foreach ($ref->getProperties() as $property) {
$property->setAccessible(true);
Expand Down

0 comments on commit 1e0ca8d

Please # to comment.