From 7250e2870095d0c43e06ebe3c781c8c793ca3737 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 16 Nov 2018 15:19:51 +1030 Subject: [PATCH] Typehint Frontend extender arguments --- framework/core/src/Extend/Frontend.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/core/src/Extend/Frontend.php b/framework/core/src/Extend/Frontend.php index 3832c71b8..24d2495d4 100644 --- a/framework/core/src/Extend/Frontend.php +++ b/framework/core/src/Extend/Frontend.php @@ -27,26 +27,26 @@ class Frontend implements ExtenderInterface protected $routes = []; protected $content = []; - public function __construct($frontend) + public function __construct(string $frontend) { $this->frontend = $frontend; } - public function css($path) + public function css(string $path) { $this->css[] = $path; return $this; } - public function js($path) + public function js(string $path) { $this->js = $path; return $this; } - public function route($path, $name, $content = null) + public function route(string $path, string $name, $content = null) { $this->routes[] = compact('path', 'name', 'content');