mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix tests
This commit is contained in:
parent
70a130f11e
commit
2c5f767098
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user