Skip to content

Commit a64fd6c

Browse files
authored
Change return type of abstract request methods
1 parent 4b66732 commit a64fd6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema/JsonRpc/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract public static function getMethod(): string;
3636
/**
3737
* @param RequestData $data
3838
*/
39-
public static function fromArray(array $data): self
39+
public static function fromArray(array $data): static
4040
{
4141
if (($data['jsonrpc'] ?? null) !== MessageInterface::JSONRPC_VERSION) {
4242
throw new InvalidArgumentException('Invalid or missing "jsonrpc" version for Request.');
@@ -68,7 +68,7 @@ public static function fromArray(array $data): self
6868
/**
6969
* @param array<string, mixed>|null $params
7070
*/
71-
abstract protected static function fromParams(?array $params): self;
71+
abstract protected static function fromParams(?array $params): static;
7272

7373
public function getId(): string|int
7474
{

0 commit comments

Comments
 (0)