Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Mar 3, 2022
1 parent 92d5e98 commit 0736438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DeepCopy/DeepCopy.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function recursiveCopy($var)
}

// Enum
if (PHP_VERSION_ID >= 80100 && is_object($var) && enum_exists(get_class($var))) {
if (PHP_VERSION_ID >= 80100 && enum_exists(get_class($var))) {
return $var;
}

Expand Down

0 comments on commit 0736438

Please sign in to comment.