Supress errors reported by psalm.
@@ -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 = [];
@@ -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 = [];
@@ -452,6 +452,7 @@ class ShadowTableStrategy implements TranslateStrategyInterface
unset($row['translation']);
if ($hydrated) {
+ /** @psalm-suppress PossiblyInvalidMethodCall */
$row->clean();