mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +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] === '}') {
|
if ($nexter_token !== null && $nexter_token[0] === '}') {
|
||||||
$new_leaf->terminated = true;
|
$new_leaf->terminated = true;
|
||||||
++$this->t;
|
++$this->t;
|
||||||
|
} elseif ($nexter_token === null) {
|
||||||
|
throw new TypeParseTreeException('Unclosed bracket in keyed array');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '(':
|
case '(':
|
||||||
|
@ -1490,14 +1490,6 @@ class AnnotationTest extends TestCase
|
|||||||
',
|
',
|
||||||
'error_message' => 'UndefinedDocblockClass',
|
'error_message' => 'UndefinedDocblockClass',
|
||||||
],
|
],
|
||||||
'preventBadTKeyedArrayFormat' => [
|
|
||||||
'<?php
|
|
||||||
/**
|
|
||||||
* @param array{} $arr
|
|
||||||
*/
|
|
||||||
function bar(array $arr): void {}',
|
|
||||||
'error_message' => 'InvalidDocblock',
|
|
||||||
],
|
|
||||||
'noPhpStormAnnotationsThankYou' => [
|
'noPhpStormAnnotationsThankYou' => [
|
||||||
'<?php
|
'<?php
|
||||||
/** @param ArrayIterator|string[] $i */
|
/** @param ArrayIterator|string[] $i */
|
||||||
|
Loading…
Reference in New Issue
Block a user