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:
parent
030195a395
commit
9d3a51db6a
@ -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 '(':
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user