@@ -191,7 +191,7 @@ public function parseVerb($request)
191191 */
192192 public function getControllerName ()
193193 {
194- return $ this ->routeParams ->controllerName ;
194+ return $ this ->routeParams ->controllerName ?? '' ;
195195 }
196196
197197 /**
@@ -201,7 +201,7 @@ public function getControllerName()
201201 */
202202 public function getControllerClassName ()
203203 {
204- return $ this ->controllerClassName ;
204+ return $ this ->controllerClassName ?? '' ;
205205 }
206206
207207 /**
@@ -211,7 +211,7 @@ public function getControllerClassName()
211211 */
212212 public function getMethodName ()
213213 {
214- return $ this ->routeParams ->methodName ;
214+ return $ this ->routeParams ->methodName ?? '' ;
215215 }
216216
217217 /**
@@ -221,7 +221,7 @@ public function getMethodName()
221221 */
222222 public function getPath ()
223223 {
224- return $ this ->routeParams ->path ;
224+ return $ this ->routeParams ->path ?? '' ;
225225 }
226226
227227 /**
@@ -231,7 +231,7 @@ public function getPath()
231231 */
232232 public function getFile ()
233233 {
234- return $ this ->routeParams ->file ;
234+ return $ this ->routeParams ->file ?? '' ;
235235 }
236236
237237 /**
@@ -253,7 +253,7 @@ public function setFile($file)
253253 */
254254 public function getHost ()
255255 {
256- return $ this ->routeParams ->host ;
256+ return $ this ->routeParams ->host ?? '' ;
257257 }
258258
259259
0 commit comments