1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +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]; $x = [...$x, ...$y];
', ',
'assertions' => ['$x===' => 'list{0?: int, 1?: int, ...<int<0, max>, int>}'], 'assertions' => ['$x===' => 'list<int>'],
], ],
'unpackNonEmptyListIsNotEmpty' => [ 'unpackNonEmptyListIsNotEmpty' => [
'code' => '<?php 'code' => '<?php
@ -1648,7 +1648,7 @@ class ArrayAssignmentTest extends TestCase
$x = [...test(), "a" => "b"]; $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' => [ 'checkTraversableUnpackTemplatesCorrectly' => [
'code' => '<?php 'code' => '<?php