diff options
author | Javier Eguiluz <javier.eguiluz@gmail.com> | 2015-06-10 20:30:03 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-06-15 18:26:34 +0200 |
commit | 36cde602d02d84b7a176912a8e01ed8e3c7ab85c (patch) | |
tree | 72b9f8f8c1a0dd48b833ebcf77da14b19d569b4d /Acl/Domain/ObjectIdentity.php | |
parent | 86642118470f5301b4e29b8fb7d3dfe876c2e83e (diff) | |
download | symfony-security-36cde602d02d84b7a176912a8e01ed8e3c7ab85c.zip symfony-security-36cde602d02d84b7a176912a8e01ed8e3c7ab85c.tar.gz symfony-security-36cde602d02d84b7a176912a8e01ed8e3c7ab85c.tar.bz2 |
Standardize the name of the exception variables
Diffstat (limited to 'Acl/Domain/ObjectIdentity.php')
-rw-r--r-- | Acl/Domain/ObjectIdentity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Acl/Domain/ObjectIdentity.php b/Acl/Domain/ObjectIdentity.php index fc5b9c6..871bda7 100644 --- a/Acl/Domain/ObjectIdentity.php +++ b/Acl/Domain/ObjectIdentity.php @@ -68,8 +68,8 @@ final class ObjectIdentity implements ObjectIdentityInterface } elseif (method_exists($domainObject, 'getId')) { return new self((string) $domainObject->getId(), ClassUtils::getRealClass($domainObject)); } - } catch (\InvalidArgumentException $invalid) { - throw new InvalidDomainObjectException($invalid->getMessage(), 0, $invalid); + } catch (\InvalidArgumentException $e) { + throw new InvalidDomainObjectException($e->getMessage(), 0, $e); } throw new InvalidDomainObjectException('$domainObject must either implement the DomainObjectInterface, or have a method named "getId".'); |