mirror of
https://github.com/jbcr/core.git
synced 2026-03-24 00:42:14 +01:00
Make the fix PHP7.x compatible.
This commit is contained in:
@@ -630,7 +630,11 @@ class ContentEditController extends TwigAwareController implements BackendZoneIn
|
||||
) {
|
||||
$currentRelation->getFromContent()->removeRelationsFromThisContent($currentRelation);
|
||||
}
|
||||
$currentRelations = $currentRelations->filter(fn(Relation $r) => $r !== $currentRelation);
|
||||
$currentRelations = $currentRelations->filter(
|
||||
static function (Relation $r) use ($currentRelation) {
|
||||
return $r !== $currentRelation;
|
||||
}
|
||||
);
|
||||
$this->em->remove($currentRelation);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user