diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-01-11 14:15:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 14:15:16 +0100 |
commit | 5ed673e5ebd20884f183cf00bee5cc8938a1d7be (patch) | |
tree | f28a8b0949fb18a94584dcf016d7e78fb2ceebd8 /lib/private/AppFramework/Http | |
parent | 683685b72c90a892904026560ac4eba740d20382 (diff) | |
parent | 24d436cb600a725ba162a5387552a996a6fc486f (diff) | |
download | nextcloud-server-5ed673e5ebd20884f183cf00bee5cc8938a1d7be.tar.gz nextcloud-server-5ed673e5ebd20884f183cf00bee5cc8938a1d7be.zip |
Merge pull request #25073 from nextcloud/psalm/24521/remove-unneeded-casts
Remove unneeded casts that were found by Psalm
Diffstat (limited to 'lib/private/AppFramework/Http')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index 828864f1e02..9ec69558e88 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -133,7 +133,7 @@ class Dispatcher { if ($numBuilt > 50) { $this->logger->debug('Controller {class}::{method} created {count} QueryBuilder objects, please check if they are created inside a loop by accident.' , [ - 'class' => (string) get_class($controller), + 'class' => get_class($controller), 'method' => $methodName, 'count' => $numBuilt, ]); @@ -141,7 +141,7 @@ class Dispatcher { if ($numExecuted > 100) { $this->logger->warning('Controller {class}::{method} executed {count} queries.' , [ - 'class' => (string) get_class($controller), + 'class' => get_class($controller), 'method' => $methodName, 'count' => $numExecuted, ]); |