Browse Source

Fix phpstan.

mscherer 5 years ago
parent
commit
f370ea00f7
3 changed files with 1 additions and 2 deletions
  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#'
         - '#PHPDoc tag @throws with type PHPUnit\\Exception is not subtype of Throwable#'
         - '#Call to an undefined method DOMNode::setAttribute\(\)#'
         - '#Call to an undefined method DOMNode::setAttribute\(\)#'
         - '#Binary operation "\+" between array|false and array results in an error#'
         - '#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\(\)#'
         - '#Call to an undefined method DateTimeInterface::setTimezone\(\)#'
         - '#Access to undefined constant NumberFormatter::CURRENCY_ACCOUNTING#'
         - '#Access to undefined constant NumberFormatter::CURRENCY_ACCOUNTING#'
         - '#Class APCuIterator referenced with incorrect case: APCUIterator#'
         - '#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 \Cake\Console\ConsoleIo $io ConsoleIo object for errors.
      * @param string|null $name The name from the CLI args.
      * @param string|null $name The name from the CLI args.
      * @return string The resolved name.
      * @return string The resolved name.
-     * @throws \Cake\Console\Exception\MissingOptionException
      */
      */
     protected function resolveName($commands, $io, $name)
     protected function resolveName($commands, $io, $name)
     {
     {

+ 1 - 0
src/Utility/Text.php

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