Skip to content

Commit

Permalink
Merge pull request #100 from koriym/string
Browse files Browse the repository at this point in the history
use toString() over string cast
  • Loading branch information
koriym authored Oct 3, 2016
2 parents 64d56b4 + 8f0f50f commit 773b3ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"require": {
"php": ">=5.5.0",
"bear/resource": "~1.0",
"bear/resource": "~1.3",
"doctrine/cache": "~1.0",
"psr/log": "~1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/Provide/Transfer/HttpResponder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __invoke(ResourceObject $resourceObject, array $server)
{
unset($server);
// render
$body = (string) $resourceObject;
$body = $resourceObject->toString();

// code
http_response_code($resourceObject->code);
Expand All @@ -32,3 +32,4 @@ public function __invoke(ResourceObject $resourceObject, array $server)
echo $body;
}
}

0 comments on commit 773b3ea

Please sign in to comment.