diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 91a9452b0b2edcf8c15ee911219e7bffe05710a9..1339890a6e72c75d6ae49a176d1046f0c370282f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,16 +1,2 @@ parameters: - ignoreErrors: - - - message: "#^Parameter \\#2 \\$val of method QUI\\\\QDOM\\:\\:setAttribute\\(\\) expects array\\|bool\\|object\\|string, int given\\.$#" - count: 1 - path: src/QUI/Timeline/Bricks/Timeline.php - - - - message: "#^Variable \\$Engine might not be defined\\.$#" - count: 1 - path: types/timeline.php - - - - message: "#^Variable \\$Site might not be defined\\.$#" - count: 4 - path: types/timeline.php + ignoreErrors: \ No newline at end of file diff --git a/src/QUI/Timeline/Controls/Timeline.php b/src/QUI/Timeline/Controls/Timeline.php index 840fdf743d89631c7be2f14afafdca9af833936c..e93f7811001045669d2cfe719833a43530c9b46c 100644 --- a/src/QUI/Timeline/Controls/Timeline.php +++ b/src/QUI/Timeline/Controls/Timeline.php @@ -38,7 +38,7 @@ public function __construct(array $attributes = []) 'displayTemplate' => false, // Custom children template css (path to css file); overwrites "display" 'displayCss' => false, - 'itemtype' => 'http://schema.org/ItemList', + 'itemtype' => 'https://schema.org/ItemList', 'child-itemtype' => 'https://schema.org/ListItem', 'child-itemprop' => 'itemListElement' ]); @@ -126,11 +126,6 @@ public function getBody(): string return $Engine->fetch($templateFile); } - - /** - * @return null|QUI\Projects\Site - * @throws Exception - */ protected function getSite(): ?QUI\Interfaces\Projects\Site { if ($this->getAttribute('Site')) { diff --git a/types/timeline.php b/types/timeline.php index f0b74dacbc33613ae1d6de7d6c61952967ca3b70..b46cfc1e288d3f4a44b8fe2e9c2daa31183c9ded 100644 --- a/types/timeline.php +++ b/types/timeline.php @@ -2,6 +2,11 @@ /** * Site list + * + * @var QUI\Projects\Project $Project + * @var QUI\Projects\Site $Site + * @var QUI\Interfaces\Template\EngineInterface $Engine + * @var QUI\Template $Template */ $Timeline = new QUI\Timeline\Controls\Timeline([