1 | <?php |
||
22 | class Psr6Storage implements Storage |
||
23 | { |
||
24 | private const DEFAULT_REMEMBER_TIME = 60 * 5; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $timeout; |
||
30 | |||
31 | /** |
||
32 | * @var CacheItemPoolInterface |
||
33 | */ |
||
34 | private $pool; |
||
35 | |||
36 | /** |
||
37 | * @var \Closure |
||
38 | */ |
||
39 | private $persist; |
||
40 | |||
41 | /** |
||
42 | * Psr6Storage constructor. |
||
43 | * @param CacheItemPoolInterface $pool |
||
44 | * @param \Closure $persist |
||
45 | * @param int $timeout |
||
46 | */ |
||
47 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param Readable $readable |
||
59 | * @param \Closure $then |
||
60 | * @return object|mixed |
||
61 | * @throws \InvalidArgumentException |
||
62 | * @throws InvalidArgumentException |
||
63 | * @throws \Exception |
||
64 | */ |
||
65 | public function remember(Readable $readable, \Closure $then) |
||
75 | |||
76 | /** |
||
77 | * @param Readable $readable |
||
78 | * @return object|mixed |
||
79 | * @throws \InvalidArgumentException |
||
80 | */ |
||
81 | private function restore(Readable $readable) |
||
91 | |||
92 | /** |
||
93 | * @param CacheItemInterface $item |
||
94 | * @return CacheItemInterface |
||
95 | */ |
||
96 | private function touch(CacheItemInterface $item): CacheItemInterface |
||
100 | |||
101 | /** |
||
102 | * @param Readable $readable |
||
103 | * @param mixed $data |
||
104 | * @return mixed |
||
105 | * @throws \Exception |
||
106 | */ |
||
107 | private function store(Readable $readable, $data) |
||
120 | } |
||
121 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.