mscherer 5 年 前
コミット
f370ea00f7
3 ファイル変更1 行追加2 行削除
  1. 0 1
      phpstan.neon
  2. 0 1
      src/Console/CommandRunner.php
  3. 1 0
      src/Utility/Text.php

+ 0 - 1
phpstan.neon

@@ -26,7 +26,6 @@ parameters:
         - '#PHPDoc tag @throws with type PHPUnit\\Exception is not subtype of Throwable#'
         - '#Call to an undefined method DOMNode::setAttribute\(\)#'
         - '#Binary operation "\+" between array|false and array results in an error#'
-        - '#Result of method Cake\\Auth\\BaseAuthenticate::unauthenticated\(\) \(void\) is used#'
         - '#Call to an undefined method DateTimeInterface::setTimezone\(\)#'
         - '#Access to undefined constant NumberFormatter::CURRENCY_ACCOUNTING#'
         - '#Class APCuIterator referenced with incorrect case: APCUIterator#'

+ 0 - 1
src/Console/CommandRunner.php

@@ -329,7 +329,6 @@ class CommandRunner implements EventDispatcherInterface
      * @param \Cake\Console\ConsoleIo $io ConsoleIo object for errors.
      * @param string|null $name The name from the CLI args.
      * @return string The resolved name.
-     * @throws \Cake\Console\Exception\MissingOptionException
      */
     protected function resolveName($commands, $io, $name)
     {

+ 1 - 0
src/Utility/Text.php

@@ -14,6 +14,7 @@
  */
 namespace Cake\Utility;
 
+use Cake\Core\Exception\Exception;
 use InvalidArgumentException;
 
 /**