bugfix var ref

This commit is contained in:
Ben Roberts 2017-11-17 17:35:33 -05:00
parent fc9c5e85aa
commit 4ea6cbe839
2 changed files with 5 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class FindBreakingChanges
$newTypeName = $newTypeDefinition->name;
$breakingChanges[] = [
'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."
];
}
}

View File

@ -685,4 +685,8 @@ class FindBreakingChangesTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedChanges, FindBreakingChanges::findArgChanges($oldSchema, $newSchema)['breakingChanges']);
}
public function testDetectsFieldArgumentTypeChange() {
}
}