Browse Source

Apply suggestions from code review

Co-authored-by: othercorey <corey.taylor.fl@gmail.com>
Mark Story 5 years ago
parent
commit
a6c55dd7bb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Error/Debugger.php
  2. 1 1
      tests/TestCase/Error/DebuggerTest.php

+ 1 - 1
src/Error/Debugger.php

@@ -634,7 +634,7 @@ class Debugger
      *
      * @param mixed $var Variable to convert.
      * @param int $maxDepth The depth to generate nodes to. Defaults to 3.
-     * @return NodeInterface The root node of the tree.
+     * @return \Cake\Error\Debug\NodeInterface The root node of the tree.
      */
     public static function exportNodes($var, int $maxDepth = 3): NodeInterface
     {

+ 1 - 1
tests/TestCase/Error/DebuggerTest.php

@@ -519,7 +519,7 @@ TEXT;
         $this->assertInstanceOf(NodeInterface::class, $result);
         $this->assertCount(2, $result->getChildren());
 
-        /** @var \Cake\Error\Debug\ArrayItemNode */
+        /** @var \Cake\Error\Debug\ArrayItemNode $item */
         $item = $result->getChildren()[0];
         $key = new ScalarNode('int', 1);
         $this->assertEquals($key, $item->getKey());