Skip to content

Commit 21a78f4

Browse files
committed
Fix node return being too strict
1 parent d2afc29 commit 21a78f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/Contracts/Repository/Daemon/BaseRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function setNode(Node $node);
1919
/**
2020
* Return the node model being used.
2121
*
22-
* @return \Pterodactyl\Models\Node
22+
* @return \Pterodactyl\Models\Node|null
2323
*/
24-
public function getNode(): Node;
24+
public function getNode();
2525

2626
/**
2727
* Set the Server model to use when requesting information from the Daemon.

app/Repositories/Daemon/BaseRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class BaseRepository implements BaseRepositoryInterface
2828
private $token;
2929

3030
/**
31-
* @var \Pterodactyl\Models\Node
31+
* @var \Pterodactyl\Models\Node|null
3232
*/
3333
private $node;
3434

@@ -65,9 +65,9 @@ public function setNode(Node $node)
6565
/**
6666
* Return the node model being used.
6767
*
68-
* @return \Pterodactyl\Models\Node
68+
* @return \Pterodactyl\Models\Node|null
6969
*/
70-
public function getNode(): Node
70+
public function getNode()
7171
{
7272
return $this->node;
7373
}

0 commit comments

Comments
 (0)