Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 9492a8c

Browse files
author
Jens Schulze
committed
fix(LocalizedEnumCollection): use correct type for LocalizedEnumCollection elements
Closes #218
1 parent 1d2d635 commit 9492a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Common/LocalizedEnumCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LocalizedEnumCollection extends Collection
2121

2222
protected function indexRow($offset, $row)
2323
{
24-
if ($row instanceof Enum) {
24+
if ($row instanceof LocalizedEnum) {
2525
$key = $row->getKey();
2626
} else {
2727
$key = $row[static::KEY];

0 commit comments

Comments
 (0)