From a4dbae779055c3213060c9b3ac40229b732597aa Mon Sep 17 00:00:00 2001 From: David Badura Date: Thu, 23 Dec 2021 13:16:58 +0100 Subject: [PATCH 1/2] upgrade psr packages --- composer.json | 4 ++-- composer.lock | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/composer.json b/composer.json index fe42ac62..9df35c24 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ "require": { "php": "~8.0.0|~8.1.0", "doctrine/dbal": "^3.2.0", - "psr/cache": "^1.0.1|^2.0.0", - "psr/simple-cache": "^1.0.1|^2.0.0" + "psr/cache": "^2.0.0|^3.0.0", + "psr/simple-cache": "^2.0.0|^3.0.0" }, "require-dev": { "ext-pdo_sqlite": "~8.0.0|~8.1.0", diff --git a/composer.lock b/composer.lock index 678b09c5..4e7c19ab 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "17f3cb8ff18dadd5361efdf4defd8c90", + "content-hash": "b2abbdd674bca52c21293f8ec086cfc4", "packages": [ { "name": "doctrine/cache", @@ -417,16 +417,16 @@ }, { "name": "psr/cache", - "version": "2.0.0", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/cache.git", - "reference": "213f9dbc5b9bfbc4f8db86d2838dc968752ce13b" + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/213f9dbc5b9bfbc4f8db86d2838dc968752ce13b", - "reference": "213f9dbc5b9bfbc4f8db86d2838dc968752ce13b", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", "shasum": "" }, "require": { @@ -460,9 +460,9 @@ "psr-6" ], "support": { - "source": "https://github.com/php-fig/cache/tree/2.0.0" + "source": "https://github.com/php-fig/cache/tree/3.0.0" }, - "time": "2021-02-03T23:23:37+00:00" + "time": "2021-02-03T23:26:27+00:00" }, { "name": "psr/log", @@ -516,16 +516,16 @@ }, { "name": "psr/simple-cache", - "version": "2.0.0", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/simple-cache.git", - "reference": "8707bf3cea6f710bf6ef05491234e3ab06f6432a" + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/8707bf3cea6f710bf6ef05491234e3ab06f6432a", - "reference": "8707bf3cea6f710bf6ef05491234e3ab06f6432a", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", "shasum": "" }, "require": { @@ -534,7 +534,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -561,9 +561,9 @@ "simple-cache" ], "support": { - "source": "https://github.com/php-fig/simple-cache/tree/2.0.0" + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" }, - "time": "2021-10-29T13:22:09+00:00" + "time": "2021-10-29T13:26:27+00:00" } ], "packages-dev": [ From 0b0ee90c1fc8852300551b855b79e5789aac785d Mon Sep 17 00:00:00 2001 From: David Badura Date: Thu, 23 Dec 2021 13:23:49 +0100 Subject: [PATCH 2/2] fix tests --- tests/Unit/Snapshot/Psr6SnapshotStoreTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Snapshot/Psr6SnapshotStoreTest.php b/tests/Unit/Snapshot/Psr6SnapshotStoreTest.php index 956f69ad..70bc56ed 100644 --- a/tests/Unit/Snapshot/Psr6SnapshotStoreTest.php +++ b/tests/Unit/Snapshot/Psr6SnapshotStoreTest.php @@ -25,7 +25,7 @@ public function testSaveSnapshot(): void $item->set([ 'playhead' => 0, 'payload' => ['foo' => 'bar'], - ])->shouldBeCalled(); + ])->shouldBeCalled()->willReturn($item); $cache = $this->prophesize(CacheItemPoolInterface::class); $cache->getItem(sprintf('%s-1', ProfileWithSnapshot::class))->willReturn($item);