Skip to content

Commit

Permalink
Fix string cast int bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou committed Jan 5, 2023
1 parent a0c625a commit f044a9b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* text=lf

# Exclude unused files
/.github export-ignore
/docs export-ignore
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/CONTRIBUTING.md export-ignore
/Makefile export-ignore
/phpcs.xml export-ignore
Expand Down
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

27 changes: 0 additions & 27 deletions phpunit.xml.dist.bak

This file was deleted.

4 changes: 2 additions & 2 deletions src/Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function bindUri(array $binding = []): string
if (static::guessArrayIsSequence($binding)) {
$binding = static::buildBindingBySequence(
$this->getUriBindingKeys(),
$binding
$binding,
);
}

foreach ($binding as $key => $value) {
$uri = str_replace("{{$key}}", $value, $uri);
$uri = str_replace("{{$key}}", "$value", $uri);
}

if (preg_match('/{.+}/', $uri)) {
Expand Down

0 comments on commit f044a9b

Please sign in to comment.