From 40c41857e836ccab032f897733c1a323c760dbeb Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 17 Mar 2015 21:12:20 +0000 Subject: [PATCH] #1333 - Removing unused `is_string()` function call and cast (always a string) --- lib/Doctrine/ORM/UnitOfWork.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 53596a671..80915155d 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2940,10 +2940,6 @@ class UnitOfWork implements PropertyChangedListener { $idHash = implode(' ', (array) $id); - if (! is_string($idHash)) { - $idHash = (string) $idHash; - } - if (isset($this->identityMap[$rootClassName][$idHash])) { return $this->identityMap[$rootClassName][$idHash]; }