Browse Source

Merge pull request #14856 from cakephp/psalm

Supress errors reported by psalm.
othercorey 5 years ago
parent
commit
a449c12366

+ 1 - 0
src/Console/CommandCollection.php

@@ -36,6 +36,7 @@ class CommandCollection implements IteratorAggregate, Countable
      *
      * @var array
      * @psalm-var (\Cake\Console\Shell|\Cake\Console\CommandInterface|class-string)[]
+     * @psalm-suppress DeprecatedClass
      */
     protected $commands = [];
 

+ 1 - 0
src/Console/ConsoleOptionParser.php

@@ -687,6 +687,7 @@ class ConsoleOptionParser
             array_shift($argv);
         }
         if (isset($this->_subcommands[$command]) && $this->_subcommands[$command]->parser()) {
+            /** @psalm-suppress PossiblyNullReference */
             return $this->_subcommands[$command]->parser()->parse($argv);
         }
         $params = $args = [];

+ 1 - 0
src/ORM/Behavior/Translate/ShadowTableStrategy.php

@@ -452,6 +452,7 @@ class ShadowTableStrategy implements TranslateStrategyInterface
                 unset($row['translation']);
 
                 if ($hydrated) {
+                    /** @psalm-suppress PossiblyInvalidMethodCall */
                     $row->clean();
                 }