mirror of
https://github.com/danog/psalm.git
synced 2025-01-23 06:11:25 +01:00
Add a couple more pure annotations
This commit is contained in:
parent
5513fcdcff
commit
e938e73549
@ -325,6 +325,9 @@ class PartialParserVisitor extends PhpParser\NodeVisitorAbstract implements PhpP
|
|||||||
return $this->must_rescan || $this->non_method_changes;
|
return $this->must_rescan || $this->non_method_changes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @psalm-pure
|
||||||
|
*/
|
||||||
private function balanceBrackets(string $fake_class) : string
|
private function balanceBrackets(string $fake_class) : string
|
||||||
{
|
{
|
||||||
$tokens = \token_get_all($fake_class);
|
$tokens = \token_get_all($fake_class);
|
||||||
|
@ -23,7 +23,10 @@ class ComposerLock
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $package
|
* @param mixed $package
|
||||||
|
*
|
||||||
* @psalm-assert-if-true array $package
|
* @psalm-assert-if-true array $package
|
||||||
|
*
|
||||||
|
* @psalm-pure
|
||||||
*/
|
*/
|
||||||
public function isPlugin($package): bool
|
public function isPlugin($package): bool
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user