Skip to content

Commit

Permalink
Revert "Prevent TypeParseException when dealing with nested template …
Browse files Browse the repository at this point in the history
…in assertion"

This reverts commit 196f24a.
  • Loading branch information
muglug committed Feb 17, 2021
1 parent 686f9fc commit 9d6d391
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,7 @@ private static function getAssertionParts(
$self_fqcln,
null,
true
),
null,
$function_template_types + $class_template_types
)
);
} catch (TypeParseTreeException $e) {
$storage->docblock_issues[] = new InvalidDocblock(
Expand Down
11 changes: 0 additions & 11 deletions tests/Template/FunctionTemplateAssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,17 +767,6 @@ function validateUsername(string $username): void {
}
}'
],
'noCrashWhenAssertingTemplatedKeyOf' => [
'<?php
/**
* @template TArray as array
* @template TCandidateKey as array-key
* @param TArray $arr
* @param array-key $key
* @psalm-assert key-of<TArray> $key
*/
function keyExists(array $arr, $key) : void {}'
],
];
}

Expand Down

0 comments on commit 9d6d391

Please sign in to comment.