mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
bugfix var ref
This commit is contained in:
parent
fc9c5e85aa
commit
4ea6cbe839
@ -195,7 +195,7 @@ class FindBreakingChanges
|
|||||||
$newTypeName = $newTypeDefinition->name;
|
$newTypeName = $newTypeDefinition->name;
|
||||||
$breakingChanges[] = [
|
$breakingChanges[] = [
|
||||||
'type' => self::BREAKING_CHANGE_NON_NULL_ARG_ADDED,
|
'type' => self::BREAKING_CHANGE_NON_NULL_ARG_ADDED,
|
||||||
'description' => "A non-null arg ${$newArgName} on ${newTypeName}->${fieldName} was added."
|
'description' => "A non-null arg ${newArgName} on ${newTypeName}->${fieldName} was added."
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -685,4 +685,8 @@ class FindBreakingChangesTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->assertEquals($expectedChanges, FindBreakingChanges::findArgChanges($oldSchema, $newSchema)['breakingChanges']);
|
$this->assertEquals($expectedChanges, FindBreakingChanges::findArgChanges($oldSchema, $newSchema)['breakingChanges']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testDetectsFieldArgumentTypeChange() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user