Skip to content

Commit 450aba1

Browse files
authored
Merge pull request microsoft#160 from Petah/patch-1
Fix error
2 parents c812b14 + 9bc3d1c commit 450aba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var_dump($astNode);
2727
// Gets and prints errors from AST Node. The parser handles errors gracefully,
2828
// so it can be used in IDE usage scenarios (where code is often incomplete).
2929
$errors = DiagnosticsProvider::getDiagnostics($astNode);
30-
var_dump(iterator_to_array($errors));
30+
var_dump($errors);
3131

3232
// Traverse all Node descendants of $astNode
3333
foreach ($astNode->getDescendantNodes() as $descendant) {

0 commit comments

Comments
 (0)