1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 22:01:48 +01:00

Add a couple more pure annotations

This commit is contained in:
Brown 2020-08-23 18:53:34 -04:00 committed by Daniil Gentili
parent 5513fcdcff
commit e938e73549
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,9 @@ class PartialParserVisitor extends PhpParser\NodeVisitorAbstract implements PhpP
return $this->must_rescan || $this->non_method_changes;
}
/**
* @psalm-pure
*/
private function balanceBrackets(string $fake_class) : string
{
$tokens = \token_get_all($fake_class);

View File

@ -23,7 +23,10 @@ class ComposerLock
/**
* @param mixed $package
*
* @psalm-assert-if-true array $package
*
* @psalm-pure
*/
public function isPlugin($package): bool
{