@@ -19,9 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | namespace Doctrine\Common\Cache; |
| 21 | 21 | |
| 22 | -use MongoBinData; |
|
| 23 | 22 | use MongoCollection; |
| 24 | -use MongoCursorException; |
|
| 25 | 23 | use MongoDate; |
| 26 | 24 | use MongoDB\Collection; |
| 27 | 25 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->collection->updateOne( |
| 121 | 121 | ['_id' => $id], |
| 122 | 122 | ['$set' => [ |
| 123 | - MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null), |
|
| 123 | + MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000) : null), |
|
| 124 | 124 | MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC), |
| 125 | 125 | ]], |
| 126 | 126 | ['upsert' => true] |