diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-12-18 14:48:17 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-12-18 14:48:17 +0100 |
commit | c65b37ce9b93a1bbfc6f33a41e834ff080d24c0f (patch) | |
tree | 2f22d35b8b615c348b29b64f8707435d2d306db9 /Acl/Domain/ObjectIdentity.php | |
parent | 60fe04c4834d8a734b2902ceddf7bbe2ac3d0bcd (diff) | |
parent | 1df44a7f54710ec4f270e7398bf1908af8f8ada8 (diff) | |
download | symfony-security-c65b37ce9b93a1bbfc6f33a41e834ff080d24c0f.zip symfony-security-c65b37ce9b93a1bbfc6f33a41e834ff080d24c0f.tar.gz symfony-security-c65b37ce9b93a1bbfc6f33a41e834ff080d24c0f.tar.bz2 |
merged 2.0
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 ee2fafc..2bd152a 100644 --- a/Acl/Domain/ObjectIdentity.php +++ b/Acl/Domain/ObjectIdentity.php @@ -60,7 +60,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) { |