Skip to content

Commit

Permalink
fix(php): do not cast to string something that's already string (#17838)
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Feb 12, 2024
1 parent f3ac449 commit f431540
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class ObjectSerializer
* If it's a datetime object, format it in ISO8601
* If it's a boolean, convert it to "true" or "false".
*
* @param string|bool|\DateTime $value the value of the parameter
* @param float|int|bool|\DateTime $value the value of the parameter
*
* @return string the header string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static function toFormValue($value)
* If it's a datetime object, format it in ISO8601
* If it's a boolean, convert it to "true" or "false".
*
* @param string|bool|\DateTime $value the value of the parameter
* @param float|int|bool|\DateTime $value the value of the parameter
*
* @return string the header string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static function toFormValue($value)
* If it's a datetime object, format it in ISO8601
* If it's a boolean, convert it to "true" or "false".
*
* @param string|bool|\DateTime $value the value of the parameter
* @param float|int|bool|\DateTime $value the value of the parameter
*
* @return string the header string
*/
Expand Down

0 comments on commit f431540

Please sign in to comment.