1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

remove obsolete test and fix a missing exception

This commit is contained in:
orklah 2022-01-05 23:02:35 +01:00
parent 030195a395
commit 9d3a51db6a
2 changed files with 3 additions and 8 deletions

View File

@ -757,7 +757,10 @@ class ParseTreeCreator
if ($nexter_token !== null && $nexter_token[0] === '}') {
$new_leaf->terminated = true;
++$this->t;
} elseif ($nexter_token === null) {
throw new TypeParseTreeException('Unclosed bracket in keyed array');
}
break;
case '(':

View File

@ -1490,14 +1490,6 @@ class AnnotationTest extends TestCase
',
'error_message' => 'UndefinedDocblockClass',
],
'preventBadTKeyedArrayFormat' => [
'<?php
/**
* @param array{} $arr
*/
function bar(array $arr): void {}',
'error_message' => 'InvalidDocblock',
],
'noPhpStormAnnotationsThankYou' => [
'<?php
/** @param ArrayIterator|string[] $i */