1 | <?php |
||
22 | final class ProxyCacheWarmer implements CacheWarmerInterface |
||
23 | { |
||
24 | private const PROXY_CLASSES = [ |
||
25 | Content::class, |
||
26 | ContentInfo::class, |
||
27 | ContentType::class, |
||
28 | ContentTypeGroup::class, |
||
29 | Language::class, |
||
30 | Location::class, |
||
31 | Section::class, |
||
32 | User::class, |
||
33 | ]; |
||
34 | |||
35 | /** @var \eZ\Publish\Core\Repository\ProxyFactory\LazyLoadingValueHolderFactory */ |
||
36 | private $lazyLoadingValueHolderFactory; |
||
37 | |||
38 | public function __construct(LazyLoadingValueHolderFactory $lazyLoadingValueHolderFactory) |
||
42 | |||
43 | public function isOptional(): bool |
||
47 | |||
48 | public function warmUp($cacheDir): void |
||
52 | } |
||
53 |
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.