From eed9cc7f1b5aa574279ad00c59468e93486dc827 Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Sun, 2 Sep 2018 17:26:03 +0200 Subject: [PATCH] Give some love to PHP CS --- src/Language/Visitor.php | 2 +- src/Validator/Rules/KnownDirectives.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Language/Visitor.php b/src/Language/Visitor.php index bab8079..94c83e7 100644 --- a/src/Language/Visitor.php +++ b/src/Language/Visitor.php @@ -263,7 +263,7 @@ class Visitor $visitFn = self::getVisitFn($visitor, $node->kind, $isLeaving); if ($visitFn) { - $result = call_user_func($visitFn, $node, $key, $parent, $path, $ancestors); + $result = call_user_func($visitFn, $node, $key, $parent, $path, $ancestors); $editValue = null; if ($result !== null) { diff --git a/src/Validator/Rules/KnownDirectives.php b/src/Validator/Rules/KnownDirectives.php index a1b9fe5..e9a0b8c 100644 --- a/src/Validator/Rules/KnownDirectives.php +++ b/src/Validator/Rules/KnownDirectives.php @@ -61,7 +61,7 @@ class KnownDirectives extends ValidationRule } /** - * @param Node[]|NodeList[] $ancestors + * @param Node[]|NodeList[] $ancestors The type is actually (Node|NodeList)[] but this PSR-5 syntax is so far not supported by most of the tools * * @return string */