Compare commits

..

2 Commits

Author SHA1 Message Date
Simon Sessingø 9b175d5794 Merge pull request #388 from skipperbent/v4-development
Version 4.0.0.0
2018-03-27 01:13:25 +02:00
Simon Sessingø ef4582dbe0 Fixed wrong return-type in loadClass. 2018-03-27 01:11:44 +02:00
+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);