aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-12-15 09:33:52 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-12-15 09:33:52 +0100
commitb6dd1a1d7b5a5eb8c5af4b1b793b06a1725bb53a (patch)
treebb3c12be762c6a0f3ef132f191eb7b8fbd535ada /lib/private/AppFramework
parent0d6a706bc08e40fad013bc7f0d07e6c0b71d27f9 (diff)
downloadnextcloud-server-b6dd1a1d7b5a5eb8c5af4b1b793b06a1725bb53a.tar.gz
nextcloud-server-b6dd1a1d7b5a5eb8c5af4b1b793b06a1725bb53a.zip
fix(app framework): Fix missing cast of double controller parameters
``settype`` allows 'double' as alias of 'float'. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Http/Dispatcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php
index c1a203a7165..aaaf2ba6560 100644
--- a/lib/private/AppFramework/Http/Dispatcher.php
+++ b/lib/private/AppFramework/Http/Dispatcher.php
@@ -194,7 +194,7 @@ class Dispatcher {
$arguments = [];
// valid types that will be casted
- $types = ['int', 'integer', 'bool', 'boolean', 'float'];
+ $types = ['int', 'integer', 'bool', 'boolean', 'float', 'double'];
foreach ($this->reflector->getParameters() as $param => $default) {