Skip to content

Commit 4ef4947

Browse files
committed
Use strict comparison to compare two class names
1 parent 8eb80b6 commit 4ef4947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MabeEnum/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ private static function detectConstants($class)
271271
}
272272

273273
// This is required to make sure that constants of base classes will be the first
274-
while (($reflection = $reflection->getParentClass()) && $reflection->name != __CLASS__) {
274+
while (($reflection = $reflection->getParentClass()) && $reflection->name !== __CLASS__) {
275275
$constants = $reflection->getConstants() + $constants;
276276
}
277277

0 commit comments

Comments
 (0)