Skip to content

Commit

Permalink
Fix psalm annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Sep 17, 2020
1 parent 6331a85 commit 6a467b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion phive.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpunit" version="^8.4" installed="8.4.3" location="./tools/phpunit" copy="true"/>
<phar name="psalm" version="^3.7.2" installed="3.11.2" location="./tools/psalm" copy="true"/>
<phar name="psalm" version="^3.7.2" installed="3.16" location="./tools/psalm" copy="true"/>
</phive>
12 changes: 6 additions & 6 deletions src/TypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private function parseTypes(ArrayIterator $tokens, Context $context, int $parser
*
* @return Type|Array_|Object_
*
* @psalm-pure
* @psalm-mutation-free
*/
private function resolveSingleType(string $type, Context $context) : object
{
Expand Down Expand Up @@ -362,7 +362,7 @@ public function addKeyword(string $keyword, string $typeClassName) : void
*
* @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
*
* @psalm-pure
* @psalm-mutation-free
*/
private function isKeyword(string $type) : bool
{
Expand All @@ -374,7 +374,7 @@ private function isKeyword(string $type) : bool
*
* @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
*
* @psalm-pure
* @psalm-mutation-free
*/
private function isPartialStructuralElementName(string $type) : bool
{
Expand All @@ -384,7 +384,7 @@ private function isPartialStructuralElementName(string $type) : bool
/**
* Tests whether the given type is a Fully Qualified Structural Element Name.
*
* @psalm-pure
* @psalm-mutation-free
*/
private function isFqsen(string $type) : bool
{
Expand All @@ -394,7 +394,7 @@ private function isFqsen(string $type) : bool
/**
* Resolves the given keyword (such as `string`) into a Type object representing that keyword.
*
* @psalm-pure
* @psalm-mutation-free
*/
private function resolveKeyword(string $type) : Type
{
Expand All @@ -406,7 +406,7 @@ private function resolveKeyword(string $type) : Type
/**
* Resolves the given FQSEN string into an FQSEN object.
*
* @psalm-pure
* @psalm-mutation-free
*/
private function resolveTypedObject(string $type, ?Context $context = null) : Object_
{
Expand Down

0 comments on commit 6a467b8

Please sign in to comment.