From 719bf45feb22fa898cb209805d271a133ef855f3 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Mon, 13 Nov 2017 10:09:21 +0100 Subject: [PATCH] Apply fixes from StyleCI (#61) --- src/Html/Attributes.php | 2 +- src/Menu.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Html/Attributes.php b/src/Html/Attributes.php index 945ce63..e5d864e 100644 --- a/src/Html/Attributes.php +++ b/src/Html/Attributes.php @@ -81,7 +81,7 @@ public function addClass($class) * * @return $this */ - public function mergeWith(Attributes $attributes) + public function mergeWith(self $attributes) { $this->attributes = array_merge($this->attributes, $attributes->attributes); $this->classes = array_merge($this->classes, $attributes->classes); diff --git a/src/Menu.php b/src/Menu.php index bab3ecb..7082e22 100644 --- a/src/Menu.php +++ b/src/Menu.php @@ -64,7 +64,7 @@ public static function new($items = []) * * @return static */ - public static function build($items, callable $callback, Menu $initial = null) + public static function build($items, callable $callback, self $initial = null) { return ($initial ?: static::new())->fill($items, $callback); } @@ -244,7 +244,7 @@ protected function parseSubmenuArgs($args): array * * @return \Spatie\Menu\Menu */ - protected function createSubmenuMenu($menu): Menu + protected function createSubmenuMenu($menu): self { if (is_callable($menu)) { $transformer = $menu;