Fix node return being too strict

This commit is contained in:
Dane Everitt 2018-01-05 18:44:20 -06:00
parent d2afc29a80
commit 21a78f465b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 5 additions and 5 deletions

View file

@ -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.

View file

@ -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;
} }