Skip to content

Commit

Permalink
We don't want to construct a new object here
Browse files Browse the repository at this point in the history
We just want to receive the underlying `\Relay\Relay` object and use it
in the cache, not create a new one.

Fixes #130
  • Loading branch information
michael-grunder committed Feb 26, 2024
1 parent a85eef4 commit c1d1d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psr/SimpleCache/RelayCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RelayCache implements CacheInterface
*/
public function __construct(Relay $relay)
{
$this->relay = new $relay;
$this->relay = $relay;
}

/**
Expand Down

0 comments on commit c1d1d94

Please sign in to comment.