mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix ZoneType choice_filter
This commit is contained in:
parent
ca218e6886
commit
ac2d41aa68
1 changed files with 2 additions and 2 deletions
|
|
@ -72,8 +72,8 @@ final class ZoneType extends AbstractResourceType
|
|||
];
|
||||
|
||||
if ($zone->getType() === ZoneInterface::TYPE_ZONE) {
|
||||
$entryOptions['entry_options']['choice_filter'] = function (ZoneInterface $subZone) use ($zone): bool {
|
||||
return $zone->getId() !== $subZone->getId();
|
||||
$entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool {
|
||||
return $subZone !== null && $zone->getId() !== $subZone->getId();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue