Skip to content

Commit

Permalink
chore: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Jan 26, 2023
1 parent cbe7355 commit 99e2c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Core/Behat/GraphqlContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public function iSendTheFollowingGraphqlMultipartRequestOperations(PyStringNode
$params['operations'] = $string->getRaw();
$params['map'] = $this->graphqlRequest['map'];

$this->request->setHttpHeader('Content-type', 'multipart/form-data'); // @phpstan-ignore-line
$this->request->send('POST', '/graphql', $params, $this->graphqlRequest['files']); // @phpstan-ignore-line
$this->request->setHttpHeader('Content-type', 'multipart/form-data');
$this->request->send('POST', '/graphql', $params, $this->graphqlRequest['files']);
}

/**
Expand All @@ -159,7 +159,7 @@ public function ISendTheQueryToIntrospectTheSchema()
*/
public function theGraphQLFieldIsDeprecatedForTheReason(string $fieldName, string $reason)
{
foreach (json_decode($this->request->getContent(), true)['data']['__type']['fields'] as $field) { // @phpstan-ignore-line
foreach (json_decode($this->request->getContent(), true)['data']['__type']['fields'] as $field) {
if ($fieldName === $field['name'] && $field['isDeprecated'] && $reason === $field['deprecationReason']) {
return;
}
Expand Down

0 comments on commit 99e2c9e

Please sign in to comment.