[Cache] fix parse error on PHP 5.5

This commit is contained in:
Nicolas Grekas 2020-06-09 14:06:18 +02:00
parent 0f76308929
commit ef6fc09260
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ trait PdoTrait
foreach ($serialized as $id => $data) {
$result = $stmt->execute();
if (null === $driver && !($result instanceof Result ? $result : $stmt)->rowCount()) {
if (null === $driver && !($result instanceof Result ? $result->rowCount() : $stmt->rowCount())) {
try {
$insertStmt->execute();
} catch (DBALException $e) {