1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix tests

This commit is contained in:
Matt Brown 2020-11-23 15:51:58 -05:00
parent 70a130f11e
commit 2c5f767098

View File

@ -1550,12 +1550,6 @@ class ArrayAssignmentTest extends TestCase
return [...$data];
}'
],
'ArrayCreateOffsetStringable' => [
'<?php
$a = new class{public function __toString(){return "";}};
$_a = [$a => "a"];
',
],
'ArrayCreateOffsetMixed' => [
'<?php
/** @var mixed $b */
@ -1884,6 +1878,12 @@ class ArrayAssignmentTest extends TestCase
',
'error_message' => 'InvalidArrayOffset'
],
'ArrayCreateOffsetStringable' => [
'<?php
$a = new class{public function __toString(){return "";}};
$_a = [$a => "a"];',
'error_message' => 'InvalidArrayOffset',
],
];
}
}