1
0
mirror of synced 2025-02-09 08:49:26 +03:00

use internal function

This commit is contained in:
ReenExe 2016-07-02 23:02:13 +03:00
parent 52b2d9022a
commit c0fc4f1158

View File

@ -2975,7 +2975,7 @@ class UnitOfWork implements PropertyChangedListener
*/
public function size()
{
$countArray = array_map(function ($item) { return count($item); }, $this->identityMap);
$countArray = array_map('count', $this->identityMap);
return array_sum($countArray);
}