1 | <?php |
||
28 | class Driver extends DriverAbstract |
||
29 | { |
||
30 | /** |
||
31 | * Driver constructor. |
||
32 | * @param array $config |
||
33 | * @throws phpFastCacheDriverException |
||
34 | */ |
||
35 | public function __construct(array $config = []) |
||
43 | |||
44 | /** |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function driverCheck() |
||
55 | |||
56 | /** |
||
57 | * @param \Psr\Cache\CacheItemInterface $item |
||
58 | * @return mixed |
||
59 | * @throws \InvalidArgumentException |
||
60 | */ |
||
61 | protected function driverWrite(CacheItemInterface $item) |
||
74 | |||
75 | /** |
||
76 | * @param \Psr\Cache\CacheItemInterface $item |
||
77 | * @return mixed |
||
78 | */ |
||
79 | protected function driverRead(CacheItemInterface $item) |
||
88 | |||
89 | /** |
||
90 | * @param \Psr\Cache\CacheItemInterface $item |
||
91 | * @return bool |
||
92 | * @throws \InvalidArgumentException |
||
93 | */ |
||
94 | protected function driverDelete(CacheItemInterface $item) |
||
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | protected function driverClear() |
||
113 | |||
114 | /** |
||
115 | * @return bool |
||
116 | */ |
||
117 | protected function driverConnect() |
||
121 | |||
122 | /******************** |
||
123 | * |
||
124 | * PSR-6 Extended Methods |
||
125 | * |
||
126 | *******************/ |
||
127 | |||
128 | /** |
||
129 | * @return driverStatistic |
||
130 | */ |
||
131 | public function getStats() |
||
140 | } |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.