Skip to content

Commit 30a586c

Browse files
Removed unused variable
1 parent 5142e42 commit 30a586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function getClassMappingConfigOrThrow(object $data): array
7272
$result = $this->classes[ $cls ];
7373
} else {
7474
// no exact match, then lets try with `instanceof`
75-
foreach ($this->classes as $class_name => $params) {
75+
foreach (array_keys($this->classes) as $class_name) {
7676
if ($data instanceof $class_name) {
7777
$result = $this->classes[ $class_name ];
7878
break;

0 commit comments

Comments
 (0)