mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 14:26:08 +03:00
Disabled deprecation notice for ResolveInfo->fieldASTs (until next version)
This commit is contained in:
parent
660200ed50
commit
63d44fe002
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -241,6 +241,7 @@ class ExecutorTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
'fieldName',
|
'fieldName',
|
||||||
|
'fieldASTs',
|
||||||
'fieldNodes',
|
'fieldNodes',
|
||||||
'returnType',
|
'returnType',
|
||||||
'parentType',
|
'parentType',
|
||||||
|
Loading…
Reference in New Issue
Block a user