Browse Source

Fix phpcs and psalm error.

Mark Story 6 years ago
parent
commit
bcee278f62
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/Error/ErrorLogger.php
  2. 1 1
      tests/TestCase/Error/ConsoleErrorHandlerTest.php

+ 1 - 0
src/Error/ErrorLogger.php

@@ -107,6 +107,7 @@ class ErrorLogger
         }
 
         if ($this->getConfig('trace')) {
+            /** @var array $trace */
             $trace = Debugger::formatTrace($exception, ['format' => 'points']);
             $message .= "\nStack Trace:\n";
             foreach ($trace as $line) {

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

@@ -16,12 +16,12 @@ declare(strict_types=1);
  */
 namespace Cake\Test\TestCase\Error;
 
-use Cake\TestSuite\Stub\ConsoleOutput;
 use Cake\Controller\Exception\MissingActionException;
 use Cake\Core\Exception\Exception;
 use Cake\Http\Exception\InternalErrorException;
 use Cake\Http\Exception\NotFoundException;
 use Cake\Log\Log;
+use Cake\TestSuite\Stub\ConsoleOutput;
 use Cake\TestSuite\TestCase;
 
 /**