Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Aug 11, 2024
1 parent fc39043 commit da3f3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Connections/EPPBaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

abstract class EPPBaseConnection implements EPPConnection {

public function readDocument(): EPPDocument{
public function readDocument(): ?EPPDocument{
$doc = EPPDocumentHelper::createEPPDocument();
$doc->loadXML($this->readXML());
return $doc;
Expand Down
2 changes: 1 addition & 1 deletion src/EPPConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function isClosed(): bool;

public function open(): bool;

public function readDocument(): EPPDocument;
public function readDocument(): ?EPPDocument;

public function readXML(): ?string;

Expand Down

0 comments on commit da3f3fc

Please sign in to comment.