8000 [Cache] fix parse error on PHP 5.5 · symfony/symfony@ef6fc09 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef6fc09

Browse files
[Cache] fix parse error on PHP 5.5
1 parent 0f76308 commit ef6fc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/PdoTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ protected function doSave(array $values, $lifetime)
339339
foreach ($serialized as $id => $data) {
340340
$result = $stmt->execute();
341341

342-
if (null === $driver && !($result instanceof Result ? $result : $stmt)->rowCount()) {
342+
if (null === $driver && !($result instanceof Result ? $result->rowCount() : $stmt->rowCount())) {
343343
try {
344344
$insertStmt->execute();
345345
} catch (DBALException $e) {

0 commit comments

Comments
 (0)
0