Disabled deprecation notice for ResolveInfo->fieldASTs (until next version)

This commit is contained in:
vladar 2016-11-19 17:37:02 +07:00
parent 660200ed50
commit 63d44fe002
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class ResolveInfo
* @var FieldNode[] * @var FieldNode[]
* @deprecated Renamed to $fieldNodes as of 19.11.2016, will be removed after several releases * @deprecated Renamed to $fieldNodes as of 19.11.2016, will be removed after several releases
*/ */
// public $fieldASTs; public $fieldASTs;
/** /**
* @var FieldNode[] * @var FieldNode[]
@ -76,6 +76,7 @@ class ResolveInfo
public function __construct(array $values) public function __construct(array $values)
{ {
Utils::assign($this, $values); Utils::assign($this, $values);
$this->fieldASTs = $this->fieldNodes;
} }
/** /**

View File

@ -241,6 +241,7 @@ class ExecutorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals([ $this->assertEquals([
'fieldName', 'fieldName',
'fieldASTs',
'fieldNodes', 'fieldNodes',
'returnType', 'returnType',
'parentType', 'parentType',