diff --git a/src/Error/Debugger.php b/src/Error/Debugger.php index f922b65de6d..210ecbaa09c 100644 --- a/src/Error/Debugger.php +++ b/src/Error/Debugger.php @@ -424,7 +424,7 @@ public static function excerpt($file, $line, $context = 2) if (!isset($data[$line])) { return $lines; } - $line = $line - 1; + --$line; for ($i = $line - $context; $i < $line + $context + 1; $i++) { if (!isset($data[$i])) { continue; diff --git a/src/I18n/RelativeTimeFormatter.php b/src/I18n/RelativeTimeFormatter.php index 3fae54e1357..46d6ab3fe99 100644 --- a/src/I18n/RelativeTimeFormatter.php +++ b/src/I18n/RelativeTimeFormatter.php @@ -231,7 +231,7 @@ protected function _diffData($futureTime, $pastTime, $backwards, $options) } if ($months >= 12) { - $years = $years + 1; + ++$years; $months = $months - 12; } diff --git a/src/Utility/Hash.php b/src/Utility/Hash.php index 685e460b619..7dd00b5eeda 100644 --- a/src/Utility/Hash.php +++ b/src/Utility/Hash.php @@ -819,7 +819,7 @@ public static function dimensions(array $data) $depth = 1; while ($elem = array_shift($data)) { if (is_array($elem)) { - $depth += 1; + ++$depth; $data = $elem; } else { break;