Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Feb 8, 2022
1 parent ac31f29 commit 692fc23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Psalm\Storage\FunctionLikeStorage;
use Psalm\Storage\MethodStorage;
use Psalm\Type;
use Psalm\Type\Atomic;
use Psalm\Type\Atomic\TArray;
use Psalm\Type\Atomic\TAssertionFalsy;
use Psalm\Type\Atomic\TClassConstant;
Expand Down Expand Up @@ -990,6 +991,7 @@ private static function handleReturn(
&& $codebase->analysis_php_version_id >= 80000
) {
$new = [];
/** @var SplQueue<array<string, Atomic>> */
$queue = new SplQueue;
$queue->enqueue($storage->return_type->getAtomicTypes());
$queue->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_DELETE);
Expand Down

0 comments on commit 692fc23

Please sign in to comment.