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:
parent
76458e0b50
commit
0d3485b588
@ -73,20 +73,6 @@ class ArrayAssignmentTest extends TestCase
|
||||
'$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' => [
|
||||
'code' => '<?php
|
||||
$out = [];
|
||||
|
Loading…
Reference in New Issue
Block a user