diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-12-15 09:33:52 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-12-15 09:33:52 +0100 |
commit | b6dd1a1d7b5a5eb8c5af4b1b793b06a1725bb53a (patch) | |
tree | bb3c12be762c6a0f3ef132f191eb7b8fbd535ada /lib/private/AppFramework | |
parent | 0d6a706bc08e40fad013bc7f0d07e6c0b71d27f9 (diff) | |
download | nextcloud-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.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) { |