Skip to content

Commit

Permalink
Fix php style
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Sep 3, 2024
1 parent 66e293e commit efd7432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Testing/MockClientStreamingCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function wait()
public function write($request, array $options = [])
{
if ($this->waitCalled) {
throw new ApiException("Cannot call write() after wait()", Code::INTERNAL, ApiStatus::INTERNAL);
throw new ApiException("Cannot call write() after wait()", Code::INTERNAL, ApiStatus::INTERNAL);
}
if (is_a($request, '\Google\Protobuf\Internal\Message')) {
/** @var Message $newRequest */
Expand Down
2 changes: 1 addition & 1 deletion src/Transport/GrpcFallbackTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function unpackResponse(Call $call, ResponseInterface $response)
$decodeType = $call->getDecodeType();
/** @var Message $responseMessage */
$responseMessage = new $decodeType;
$responseMessage->mergeFromString((string)$response->getBody());
$responseMessage->mergeFromString((string) $response->getBody());
return $responseMessage;
}

Expand Down

0 comments on commit efd7432

Please sign in to comment.