1 | <?php |
||
14 | class SitemapObserver implements ParsedContentObserverInterface |
||
15 | { |
||
16 | /** |
||
17 | * Config writer |
||
18 | * |
||
19 | * @var XmlXmlWriter |
||
20 | */ |
||
21 | private $xmlWriter; |
||
22 | |||
23 | /** |
||
24 | * Sitemap path |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $sitemapPath; |
||
29 | |||
30 | /** |
||
31 | * Constructor |
||
32 | * |
||
33 | * @param XmlWriter $xmlWriter |
||
34 | * @param string $sitemapPath |
||
35 | */ |
||
36 | public function __construct(XmlWriter $xmlWriter, string $sitemapPath) |
||
41 | |||
42 | /** |
||
43 | * Handle parsed config |
||
44 | * @param array $config |
||
45 | */ |
||
46 | public function __invoke(array $config) |
||
76 | |||
77 | /** |
||
78 | * Get xml config writer |
||
79 | * |
||
80 | * @return XmlXmlWriter |
||
81 | */ |
||
82 | public function getXmlWriter() |
||
86 | |||
87 | /** |
||
88 | * Get sitemap path |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getSitemapPath() |
||
96 | |||
97 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..