1 | <?php |
||
7 | final class PSR16CacheSuffixProvider implements SuffixProviderInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var CacheInterface |
||
11 | */ |
||
12 | private $cache; |
||
13 | |||
14 | /** |
||
15 | * @var PublicSuffixProvider |
||
16 | */ |
||
17 | private $suffixProvider; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $key; |
||
23 | |||
24 | /** |
||
25 | * constructor. |
||
26 | * @param CacheInterface $cache |
||
27 | * @param PublicSuffixProvider $suffixProvider |
||
28 | */ |
||
29 | public function __construct( |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function getSuffixes(): iterable |
||
51 | } |
||
52 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.