1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
This commit is contained in:
Daniil Gentili 2022-12-02 14:03:51 +01:00
parent a0bf4cf371
commit 8aecadda83

View File

@ -1532,7 +1532,7 @@ class ArrayAssignmentTest extends TestCase
$x = [...$x, ...$y];
',
'assertions' => ['$x===' => 'list{0?: int, 1?: int, ...<int<0, max>, int>}'],
'assertions' => ['$x===' => 'list<int>'],
],
'unpackNonEmptyListIsNotEmpty' => [
'code' => '<?php
@ -1648,7 +1648,7 @@ class ArrayAssignmentTest extends TestCase
$x = [...test(), "a" => "b"];
',
'assertions' => ['$x===' => "array{0?: mixed, a: 'b', ...<int<0, max>, mixed>}"],
'assertions' => ['$x===' => "array{a: 'b', ...<int<0, max>, mixed>}"],
],
'checkTraversableUnpackTemplatesCorrectly' => [
'code' => '<?php