Skip to content

Commit

Permalink
Fix errors reported by phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Sep 19, 2022
1 parent 5279fc6 commit 3e0b5f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ObjectRegistry.php
Expand Up @@ -39,7 +39,7 @@
* @see \Cake\Controller\ComponentRegistry
* @see \Cake\View\HelperRegistry
* @see \Cake\Console\TaskRegistry
* @template TObject
* @template TObject of object
* @template-implements \IteratorAggregate<string, TObject>
*/
abstract class ObjectRegistry implements Countable, IteratorAggregate
Expand Down Expand Up @@ -104,10 +104,6 @@ public function load(string $name, array $config = []): object
}
}

/**
* @psalm-var TObject $instance
* @psalm-suppress PossiblyNullArgument
**/
$instance = $this->_create($className, $objName, $config);
$this->_loaded[$objName] = $instance;

Expand Down

0 comments on commit 3e0b5f5

Please sign in to comment.