From ff277cf2bb3e0b371d239826ca44666d78e49f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pel=C3=AD=C5=A1ek?= Date: Wed, 18 Nov 2020 19:24:51 +0100 Subject: [PATCH] codestyle --- tests/Spec/TestSchema.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/Spec/TestSchema.php b/tests/Spec/TestSchema.php index 1aa42a8d5..23783458d 100644 --- a/tests/Spec/TestSchema.php +++ b/tests/Spec/TestSchema.php @@ -1287,15 +1287,19 @@ protected function getFieldDefinition() : \Graphpinator\Field\ResolvableFieldSet new \Graphpinator\Field\ResolvableField( 'fieldA', \Graphpinator\Container\Container::Int(), - function (?int $parent) : ?int { - return $parent === 1 ? 1 : null; + static function (?int $parent) : ?int { + return $parent === 1 + ? 1 + : null; }, ), new \Graphpinator\Field\ResolvableField( 'fieldB', \Graphpinator\Container\Container::Int(), - function (int $parent) : ?int { - return $parent === 0 ? 1 : null; + static function (int $parent) : ?int { + return $parent === 0 + ? 1 + : null; }, ), ]);