1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Commit just first part of fix for now

This commit is contained in:
Daniil Gentili 2023-12-07 13:04:59 +01:00
parent 76458e0b50
commit 0d3485b588

View File

@ -73,20 +73,6 @@ class ArrayAssignmentTest extends TestCase
'$result===' => 'array{a::class: true, b::class: true}', '$result===' => 'array{a::class: true, b::class: true}',
], ],
], ],
'assignUnionOfLiteralsClassKeys2' => [
'code' => '<?php
class a {}
class b {}
$result = ["c" => true];
foreach ([a::class, b::class] as $k) {
$result[$k] = true;
}',
'assertions' => [
'$result===' => 'array{a::class: true, b::class: true, c: true}',
],
],
'genericArrayCreationWithSingleIntValue' => [ 'genericArrayCreationWithSingleIntValue' => [
'code' => '<?php 'code' => '<?php
$out = []; $out = [];