Skip to content

Commit 4560167

Browse files
committed
Bugfix Interface return type
1 parent 083c9fc commit 4560167

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Domain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ public function isPrivate(): bool
474474
/**
475475
* {@inheritdoc}
476476
*/
477-
public function toAscii(): self
477+
public function toAscii(): DomainInterface
478478
{
479479
if (null === $this->domain) {
480480
return $this;
@@ -491,7 +491,7 @@ public function toAscii(): self
491491
/**
492492
* {@inheritdoc}
493493
*/
494-
public function toUnicode(): self
494+
public function toUnicode(): DomainInterface
495495
{
496496
if (null === $this->domain || false === strpos($this->domain, 'xn--')) {
497497
return $this;

src/PublicSuffix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function isPrivate(): bool
316316
/**
317317
* {@inheritdoc}
318318
*/
319-
public function toAscii(): self
319+
public function toAscii(): DomainInterface
320320
{
321321
if (null === $this->publicSuffix) {
322322
return $this;
@@ -333,7 +333,7 @@ public function toAscii(): self
333333
/**
334334
* {@inheritdoc}
335335
*/
336-
public function toUnicode(): self
336+
public function toUnicode(): DomainInterface
337337
{
338338
if (null === $this->publicSuffix || false === strpos($this->publicSuffix, 'xn--')) {
339339
return $this;

0 commit comments

Comments
 (0)