Skip to content

Commit

Permalink
fix: add missing @psalm-pure annotation to pure methods
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Oct 12, 2023
1 parent 88c6b0f commit 004eb16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mapper/Tree/Message/MessageBuilder.php
Expand Up @@ -53,6 +53,9 @@ public static function newError(string $body): self
return $instance;
}

/**
* @psalm-pure
*/
public static function from(Throwable $error): ErrorMessage
{
if ($error instanceof ErrorMessage) {
Expand Down Expand Up @@ -116,6 +119,8 @@ public function parameters(): array
}

/**
* @psalm-pure
*
* PHP8.1 intersection
* @return MessageType&HasCode&HasParameters
*/
Expand Down

0 comments on commit 004eb16

Please sign in to comment.