Skip to content

Commit

Permalink
Merge pull request #489 from creative-commoners/pulls/3.7/fakeresolve…
Browse files Browse the repository at this point in the history
…info2

MNT Handle early versions of webonyx/graphql-php
  • Loading branch information
GuySartorelli authored Jul 22, 2022
2 parents 194919b + f672df1 commit 45078da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Fake/FakeResolveInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class FakeResolveInfo extends ResolveInfo implements TestOnly
{
public function __construct(array $options = [])
{
// webonyx/graphql-php v0.12
if (!property_exists(__CLASS__, 'fieldDefinition')) {
return;
}
// webonyx/graphql-php v14
// This is a minimal implementation that's just good enough
// to get unit tests to pass
$name = 'fake';
Expand Down

0 comments on commit 45078da

Please sign in to comment.