diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-12-15 09:33:52 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-12-16 15:28:09 +0000 |
commit | e8619feb1893a5ffd7fad662a1d8517a85bd10ed (patch) | |
tree | 6cf593ade811c537e4b1e9fecfd6fadd1b21c162 /lib | |
parent | 78dd4c65fe07324f5ffd358fbc897368bc031e6d (diff) | |
download | nextcloud-server-e8619feb1893a5ffd7fad662a1d8517a85bd10ed.tar.gz nextcloud-server-e8619feb1893a5ffd7fad662a1d8517a85bd10ed.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')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 2 |
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) { |