Browse Source

Merge pull request #10540 from Theaxiom/incrementers

Fixing a couple incrementers and decrementers
Mark Story 9 years ago
parent
commit
322fa487b3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Error/Debugger.php
  2. 1 1
      src/Utility/Hash.php

+ 1 - 1
src/Error/Debugger.php

@@ -424,7 +424,7 @@ class Debugger
         if (!isset($data[$line])) {
             return $lines;
         }
-        $line = $line - 1;
+        $line--;
         for ($i = $line - $context; $i < $line + $context + 1; $i++) {
             if (!isset($data[$i])) {
                 continue;

+ 1 - 1
src/Utility/Hash.php

@@ -819,7 +819,7 @@ class Hash
         $depth = 1;
         while ($elem = array_shift($data)) {
             if (is_array($elem)) {
-                $depth += 1;
+                $depth++;
                 $data = $elem;
             } else {
                 break;