diff options
Diffstat (limited to 'Acl/Domain/Acl.php')
-rw-r--r-- | Acl/Domain/Acl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Acl/Domain/Acl.php b/Acl/Domain/Acl.php index 4a4a2e2..a890bbe 100644 --- a/Acl/Domain/Acl.php +++ b/Acl/Domain/Acl.php @@ -311,9 +311,9 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged /** * {@inheritDoc} */ - public function setParentAcl(AclInterface $acl) + public function setParentAcl(AclInterface $acl = null) { - if (null === $acl->getId()) { + if (null !== $acl && null === $acl->getId()) { throw new \InvalidArgumentException('$acl must have an ID.'); } |