Skip to content

Commit 6a467b8

Browse files
committed
Fix psalm annotations
1 parent 6331a85 commit 6a467b8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

phive.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
33
<phar name="phpunit" version="^8.4" installed="8.4.3" location="./tools/phpunit" copy="true"/>
4-
<phar name="psalm" version="^3.7.2" installed="3.11.2" location="./tools/psalm" copy="true"/>
4+
<phar name="psalm" version="^3.7.2" installed="3.16" location="./tools/psalm" copy="true"/>
55
</phive>

src/TypeResolver.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private function parseTypes(ArrayIterator $tokens, Context $context, int $parser
311311
*
312312
* @return Type|Array_|Object_
313313
*
314-
* @psalm-pure
314+
* @psalm-mutation-free
315315
*/
316316
private function resolveSingleType(string $type, Context $context) : object
317317
{
@@ -362,7 +362,7 @@ public function addKeyword(string $keyword, string $typeClassName) : void
362362
*
363363
* @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
364364
*
365-
* @psalm-pure
365+
* @psalm-mutation-free
366366
*/
367367
private function isKeyword(string $type) : bool
368368
{
@@ -374,7 +374,7 @@ private function isKeyword(string $type) : bool
374374
*
375375
* @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
376376
*
377-
* @psalm-pure
377+
* @psalm-mutation-free
378378
*/
379379
private function isPartialStructuralElementName(string $type) : bool
380380
{
@@ -384,7 +384,7 @@ private function isPartialStructuralElementName(string $type) : bool
384384
/**
385385
* Tests whether the given type is a Fully Qualified Structural Element Name.
386386
*
387-
* @psalm-pure
387+
* @psalm-mutation-free
388388
*/
389389
private function isFqsen(string $type) : bool
390390
{
@@ -394,7 +394,7 @@ private function isFqsen(string $type) : bool
394394
/**
395395
* Resolves the given keyword (such as `string`) into a Type object representing that keyword.
396396
*
397-
* @psalm-pure
397+
* @psalm-mutation-free
398398
*/
399399
private function resolveKeyword(string $type) : Type
400400
{
@@ -406,7 +406,7 @@ private function resolveKeyword(string $type) : Type
406406
/**
407407
* Resolves the given FQSEN string into an FQSEN object.
408408
*
409-
* @psalm-pure
409+
* @psalm-mutation-free
410410
*/
411411
private function resolveTypedObject(string $type, ?Context $context = null) : Object_
412412
{

0 commit comments

Comments
 (0)