Skip to content

Commit

Permalink
refactor: fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nulxrd committed Feb 8, 2024
1 parent 38e4cea commit a50d3e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Adapter/Array/Tests/ArrayAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function testDoFetch(): void {
$adapter = new ArrayAdapter();
$adapter->set('foo', 'bar');

$this->assertEquals('bar', $adapter->get('foo')->get());
$this->assertEquals(
'bar',
$adapter->get('foo')->get()
);
}
}
2 changes: 1 addition & 1 deletion src/Adapter/GenericAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class GenericAdapter implements CacheItemPool
protected array $deferred = [];

public function __construct() {
self::$createCacheItem ??= \Closure::bind(
self::$createCacheItem = \Closure::bind(
static function (string $key, mixed $value, bool $isHit) {
return new CacheItem($key, $isHit, $value);
},
Expand Down

0 comments on commit a50d3e9

Please sign in to comment.