summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-01 20:12:02 +0200
committerGitHub <noreply@github.com>2017-08-01 20:12:02 +0200
commit3f0f18b4c45429445678613f6d07cfbc800ceade (patch)
treec85246eadd2103200e26af6b208756dc87822e76 /settings
parent84c22fdeef6986f9038d8563937cc234751d5147 (diff)
parentf93a82b8b09109e391b0314f92d02d285c356ad6 (diff)
downloadnextcloud-server-3f0f18b4c45429445678613f6d07cfbc800ceade.tar.gz
nextcloud-server-3f0f18b4c45429445678613f6d07cfbc800ceade.zip
Merge pull request #5948 from nextcloud/remove-explicit-declaration
Remove explicit type hints for Controller
Diffstat (limited to 'settings')
-rw-r--r--settings/Middleware/SubadminMiddleware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/Middleware/SubadminMiddleware.php b/settings/Middleware/SubadminMiddleware.php
index 23f5ebac6b9..9914d65af02 100644
--- a/settings/Middleware/SubadminMiddleware.php
+++ b/settings/Middleware/SubadminMiddleware.php
@@ -59,7 +59,7 @@ class SubadminMiddleware extends Middleware {
* @param string $methodName
* @throws \Exception
*/
- public function beforeController(Controller $controller, $methodName) {
+ public function beforeController($controller, $methodName) {
if(!$this->reflector->hasAnnotation('NoSubadminRequired')) {
if(!$this->isSubAdmin) {
throw new NotAdminException('Logged in user must be a subadmin');
@@ -75,7 +75,7 @@ class SubadminMiddleware extends Middleware {
* @return TemplateResponse
* @throws \Exception
*/
- public function afterException(Controller $controller, $methodName, \Exception $exception) {
+ public function afterException($controller, $methodName, \Exception $exception) {
if($exception instanceof NotAdminException) {
$response = new TemplateResponse('core', '403', array(), 'guest');
$response->setStatus(Http::STATUS_FORBIDDEN);