Fix node return being too strict
This commit is contained in:
parent
d2afc29a80
commit
21a78f465b
2 changed files with 5 additions and 5 deletions
|
@ -19,9 +19,9 @@ interface BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return the node model being used.
|
* Return the node model being used.
|
||||||
*
|
*
|
||||||
* @return \Pterodactyl\Models\Node
|
* @return \Pterodactyl\Models\Node|null
|
||||||
*/
|
*/
|
||||||
public function getNode(): Node;
|
public function getNode();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the Server model to use when requesting information from the Daemon.
|
* Set the Server model to use when requesting information from the Daemon.
|
||||||
|
|
|
@ -28,7 +28,7 @@ abstract class BaseRepository implements BaseRepositoryInterface
|
||||||
private $token;
|
private $token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Pterodactyl\Models\Node
|
* @var \Pterodactyl\Models\Node|null
|
||||||
*/
|
*/
|
||||||
private $node;
|
private $node;
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ abstract class BaseRepository implements BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return the node model being used.
|
* Return the node model being used.
|
||||||
*
|
*
|
||||||
* @return \Pterodactyl\Models\Node
|
* @return \Pterodactyl\Models\Node|null
|
||||||
*/
|
*/
|
||||||
public function getNode(): Node
|
public function getNode()
|
||||||
{
|
{
|
||||||
return $this->node;
|
return $this->node;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue