From 63d44fe002ec32c27937bdb46014d4669b8d2f3a Mon Sep 17 00:00:00 2001 From: vladar Date: Sat, 19 Nov 2016 17:37:02 +0700 Subject: [PATCH] Disabled deprecation notice for ResolveInfo->fieldASTs (until next version) --- src/Type/Definition/ResolveInfo.php | 3 ++- tests/Executor/ExecutorTest.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Type/Definition/ResolveInfo.php b/src/Type/Definition/ResolveInfo.php index 03ca726..737d95a 100644 --- a/src/Type/Definition/ResolveInfo.php +++ b/src/Type/Definition/ResolveInfo.php @@ -26,7 +26,7 @@ class ResolveInfo * @var FieldNode[] * @deprecated Renamed to $fieldNodes as of 19.11.2016, will be removed after several releases */ - // public $fieldASTs; + public $fieldASTs; /** * @var FieldNode[] @@ -76,6 +76,7 @@ class ResolveInfo public function __construct(array $values) { Utils::assign($this, $values); + $this->fieldASTs = $this->fieldNodes; } /** diff --git a/tests/Executor/ExecutorTest.php b/tests/Executor/ExecutorTest.php index 739477b..30f7e6a 100644 --- a/tests/Executor/ExecutorTest.php +++ b/tests/Executor/ExecutorTest.php @@ -241,6 +241,7 @@ class ExecutorTest extends \PHPUnit_Framework_TestCase $this->assertEquals([ 'fieldName', + 'fieldASTs', 'fieldNodes', 'returnType', 'parentType',