1 | <?php |
||
24 | class LdapToolsCacheWarmer implements CacheWarmerInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var LdapManager |
||
28 | */ |
||
29 | protected $ldap; |
||
30 | |||
31 | /** |
||
32 | * @var Configuration |
||
33 | */ |
||
34 | protected $config; |
||
35 | |||
36 | /** |
||
37 | * @param LdapManager $ldap |
||
38 | * @param Configuration $config |
||
39 | */ |
||
40 | public function __construct(LdapManager $ldap, Configuration $config) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function warmUp($cacheDir) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function isOptional() |
||
71 | |||
72 | /** |
||
73 | * @param LdapObjectSchemaFactory $schemaFactory |
||
74 | * @param LdapObjectSchema ...$schemaObjects |
||
75 | */ |
||
76 | protected function cacheAllLdapSchemaObjects(LdapObjectSchemaFactory $schemaFactory, LdapObjectSchema ...$schemaObjects) |
||
83 | } |
||
84 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.