From bc8436b45fe0ad44d837203cdcf72fc1f789a918 Mon Sep 17 00:00:00 2001 From: Markus Poerschke Date: Tue, 28 Nov 2017 17:32:48 +0100 Subject: [PATCH] Fix PHP style guide --- src/Component.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Component.php b/src/Component.php index a5c395cd..6891c096 100644 --- a/src/Component.php +++ b/src/Component.php @@ -60,7 +60,7 @@ abstract public function buildPropertyBag(); * @param Component $component The Component that will be added * @param null $key The key of the Component */ - public function addComponent(Component $component, $key = null) + public function addComponent(self $component, $key = null) { if (null == $key) { $this->components[] = $component; @@ -163,7 +163,7 @@ private function buildComponents(array &$lines) * @param array $lines * @param Component $component */ - private function addComponentLines(array &$lines, Component $component) + private function addComponentLines(array &$lines, self $component) { foreach ($component->build() as $l) { $lines[] = $l;