Skip to content

Commit 82df155

Browse files
committed
Do not return the removed object in ChainDataPersister
The return type should be strict. We do not add a void return type for now as that'd be a BC break.
1 parent 573c0a4 commit 82df155

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DataPersister/ChainDataPersister.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function remove($data)
6363
{
6464
foreach ($this->persisters as $persister) {
6565
if ($persister->supports($data)) {
66-
return $persister->remove($data);
66+
$persister->remove($data);
67+
68+
return;
6769
}
6870
}
6971
}

0 commit comments

Comments
 (0)