From 658816180aa4a07d4cfcc6f075a230a6073506b0 Mon Sep 17 00:00:00 2001 From: Yannick Yeboue Date: Sat, 12 Aug 2017 12:17:13 -0400 Subject: [PATCH] Update unions.md replace semi colon with a comma as it would cause a syntax error --- docs/type-system/unions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/type-system/unions.md b/docs/type-system/unions.md index 83e2fdb..9b5dcae 100644 --- a/docs/type-system/unions.md +++ b/docs/type-system/unions.md @@ -11,7 +11,7 @@ $searchResultType = new UnionType([ 'types' => [ MyTypes::story(), MyTypes::user() - ]; + ], 'resolveType' => function($value) { if ($value->type === 'story') { return MyTypes::story();