Skip to content

Commit

Permalink
php7.2 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrattue authored and debesha committed Feb 12, 2018
1 parent 2e5f4c9 commit 93835dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ORM/LoggingHydratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public function hydrateAll($stmt, $resultSetMapping, array $hints = [])
$result = parent::hydrateAll($stmt, $resultSetMapping, $hints);

if ($logger) {
$logger->stop(sizeof($result), $resultSetMapping->getAliasMap());
if (is_array($result) || $result instanceof Countable) {
$logger->stop(sizeof($result), $resultSetMapping->getAliasMap());
}
}

return $result;
Expand Down

0 comments on commit 93835dc

Please sign in to comment.