fix: nullable group field in SDK\Method

This commit is contained in:
Fabian Gruber 2025-04-23 17:12:34 +02:00
parent fe28af292b
commit b0eb6434b8

View file

@ -16,7 +16,7 @@ class Method
* Initialise a new SDK method
*
* @param string $namespace
* @param string|null $group
* @param ?string $group
* @param string $name
* @param string $description
* @param array<AuthType> $auth
@ -34,7 +34,7 @@ class Method
*/
public function __construct(
protected string $namespace,
protected string|null $group,
protected ?string $group,
protected string $name,
protected string $description,
protected array $auth,
@ -128,7 +128,7 @@ class Method
return $this->namespace;
}
public function getGroup(): string|null
public function getGroup(): ?string
{
return $this->group;
}