aboutsummaryrefslogtreecommitdiff
path: root/docs/en/developers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-04-07 00:13:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-07 00:13:49 +0200
commit6c01e4e7d6c177ac345c826059e585bffdd1d517 (patch)
tree45bd8ee233a306881ed81447a3f56ca224fed538 /docs/en/developers
parent2118448133e327294ad2b69ed8736bc29879103d (diff)
Use typed access to request parameters (#5267)
* Use typed access to request parameters This was a big source of mixed datatypes in many places * Fix notifications * Fix bookmarkAction
Diffstat (limited to 'docs/en/developers')
-rw-r--r--docs/en/developers/Minz/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/en/developers/Minz/index.md b/docs/en/developers/Minz/index.md
index ed5bc0482..05fbfdaef 100644
--- a/docs/en/developers/Minz/index.md
+++ b/docs/en/developers/Minz/index.md
@@ -67,7 +67,7 @@ Code example:
<?php
$default_value = 'foo';
-$param = Minz_Request::param('bar', $default_value);
+$param = Minz_Request::paramString('bar') ?: $default_value;
// Display the value of the parameter `bar` (passed via GET or POST)
// or "foo" if the parameter does not exist.
@@ -78,7 +78,7 @@ Minz_Request::_param('bar', 'baz');
// Will necessarily display "baz" since we have just forced its value.
// Note that the second parameter (default) is optional.
-echo Minz_Request::param('bar');
+echo Minz_Request::paramString('bar');
?>
```