We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398c204 commit 41cfb83Copy full SHA for 41cfb83
src/Mapper.php
@@ -21,10 +21,11 @@ class Mapper extends Api
21
public readonly Client $client;
22
public readonly Converter $converter;
23
public readonly Middleware $middleware;
24
- public ?CacheItemPoolInterface $cache = null;
25
26
- public function __construct(Client $client)
27
- {
+ public function __construct(
+ Client $client,
+ public ?CacheItemPoolInterface $cache = null,
28
+ ) {
29
$this->middleware = new Middleware($this);
30
$this->client = $client->withMiddleware($this->middleware);
31
$this->converter = new Converter();
0 commit comments