Fixed wrong return-type in loadClass.

This commit is contained in:
Simon Sessingø
2018-03-27 01:11:44 +02:00
parent 54ae830ec8
commit ef4582dbe0
+2 -2
View File
@@ -60,10 +60,10 @@ abstract class Route implements IRoute
/**
* Load class by name
* @param string $name
* @return object
* @return mixed
* @throws NotFoundHttpException
*/
protected function loadClass($name): object
protected function loadClass($name)
{
if (class_exists($name) === false) {
throw new NotFoundHttpException(sprintf('Class "%s" does not exist', $name), 404);