mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Fixed wrong return-type in loadClass.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user