Skip to content

Commit 0736438

Browse files
committed
Remove redundant check
1 parent 92d5e98 commit 0736438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DeepCopy/DeepCopy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function recursiveCopy($var)
141141
}
142142

143143
// Enum
144-
if (PHP_VERSION_ID >= 80100 && is_object($var) && enum_exists(get_class($var))) {
144+
if (PHP_VERSION_ID >= 80100 && enum_exists(get_class($var))) {
145145
return $var;
146146
}
147147

0 commit comments

Comments
 (0)