Skip to content

Commit

Permalink
fix: cs
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Dec 16, 2022
1 parent e14ad54 commit b2ec54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenApi/Model/Operation.php
Expand Up @@ -116,7 +116,7 @@ public function withResponses(array $responses): self
public function withResponse(int|string $status, Response $response): self
{
$clone = clone $this;
if (!is_array($clone->responses)) {
if (!\is_array($clone->responses)) {
$clone->responses = [];
}
$clone->responses[(string) $status] = $response;
Expand Down Expand Up @@ -159,7 +159,7 @@ public function withParameters(array $parameters): self
public function withParameter(Parameter $parameter): self
{
$clone = clone $this;
if (!is_array($clone->parameters)) {
if (!\is_array($clone->parameters)) {
$clone->parameters = [];
}
$clone->parameters[] = $parameter;
Expand Down

0 comments on commit b2ec54b

Please sign in to comment.