Skip to content

Commit

Permalink
fix(php): do not cast to string something that's already string
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Feb 9, 2024
1 parent 783e68c commit bfdce2e
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 @@ -340,7 +340,7 @@ class ObjectSerializer
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} else {
return (string) $value;
return $value;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static function toString($value)
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} else {
return (string) $value;
return $value;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static function toString($value)
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} else {
return (string) $value;
return $value;
}
}

Expand Down

0 comments on commit bfdce2e

Please sign in to comment.