diff --git a/.travis.yml b/.travis.yml index bb109a775..535a0612d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,7 @@ before_script: - if [[ (! $BEHAT_TEST) && (! $ASSETADMIN_TEST) ]]; then composer require --prefer-dist --no-update silverstripe/recipe-core:4.x-dev silverstripe/assets:1.x-dev --prefer-dist ; fi - if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.x-dev --prefer-dist --no-update; fi - if [[ $ASSETADMIN_TEST ]]; then composer require silverstripe/recipe-cms $RECIPE_CMS_VERSION --prefer-source --no-update ; fi - - if [[ $BEHAT_TEST ]]; then composer require silverstripe/recipe-testing:^2 silverstripe/recipe-cms:$RECIPE_CMS_VERSION silverstripe/frameworktest:dev-master --prefer-source --no-update ; fi + - if [[ $BEHAT_TEST ]]; then composer require silverstripe/recipe-testing:^1 silverstripe/recipe-cms:$RECIPE_CMS_VERSION silverstripe/frameworktest:0.2.0 --prefer-source --no-update ; fi - composer update - if [[ $BEHAT_TEST ]]; then mkdir artifacts; fi diff --git a/src/Schema/DataObject/CreateCreator.php b/src/Schema/DataObject/CreateCreator.php index 2c3a6c133..eaa323ad0 100644 --- a/src/Schema/DataObject/CreateCreator.php +++ b/src/Schema/DataObject/CreateCreator.php @@ -74,7 +74,7 @@ public function createOperation( public static function resolve(array $resolverContext = []): Closure { $dataClass = $resolverContext['dataClass'] ?? null; - return function ($obj, $args = [], $context = [], ResolveInfo $info) use ($dataClass) { + return function ($obj, $args = [], $context = [], ResolveInfo $info = null) use ($dataClass) { if (!$dataClass) { return null; }