Skip to content

Commit fb0ca60

Browse files
committed
Fixed a mistake in the type language documentation (#176)
1 parent cb40e11 commit fb0ca60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/type-system/type-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $cacheFilename = 'cached_schema.php';
8282

8383
if (!file_exists($cacheFilename)) {
8484
$document = Parser::parse(file_get_contents('./schema.graphql'));
85-
file_put_contents($cacheFilename, "<?php\nreturn " . var_export($document->toArray(), true));
85+
file_put_contents($cacheFilename, "<?php\nreturn " . var_export(AST::toArray($document), true));
8686
} else {
8787
$document = AST::fromArray(require $cacheFilename); // fromArray() is a lazy operation as well
8888
}

0 commit comments

Comments
 (0)