diff options
Diffstat (limited to 'Acl/Domain/ObjectIdentity.php')
-rw-r--r-- | Acl/Domain/ObjectIdentity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Acl/Domain/ObjectIdentity.php b/Acl/Domain/ObjectIdentity.php index 3bf1fe1..42fc67c 100644 --- a/Acl/Domain/ObjectIdentity.php +++ b/Acl/Domain/ObjectIdentity.php @@ -61,7 +61,7 @@ final class ObjectIdentity implements ObjectIdentityInterface try { if ($domainObject instanceof DomainObjectInterface) { return new self($domainObject->getObjectIdentifier(), get_class($domainObject)); - } else if (method_exists($domainObject, 'getId')) { + } elseif (method_exists($domainObject, 'getId')) { return new self($domainObject->getId(), get_class($domainObject)); } } catch (\InvalidArgumentException $invalid) { |