From c2fd5bdedfc1087384af099ef39aca5c8c5777b7 Mon Sep 17 00:00:00 2001 From: Mark Harding Date: Tue, 13 Jun 2023 09:33:34 +0100 Subject: [PATCH] (fix): Required parameter follows optional parameter Signed-off-by: Mark Harding --- src/Oracle/Oci/Common/HttpUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oracle/Oci/Common/HttpUtils.php b/src/Oracle/Oci/Common/HttpUtils.php index 98fe742..6fb5a26 100644 --- a/src/Oracle/Oci/Common/HttpUtils.php +++ b/src/Oracle/Oci/Common/HttpUtils.php @@ -163,7 +163,7 @@ public static function attemptEncodeParam($value) // : string * @return mixed|null the value indicated by the parameter name, or null if not found * @throws InvalidArgumentException if the parameter does not exist and $required is true */ - public static function orNull($params=[], $paramName, $required = false) + public static function orNull($params, $paramName, $required = false) { if (array_key_exists($paramName, $params)) { return $params[$paramName];