Skip to content

Commit daf0c7e

Browse files
committed
Make isEmpty public
1 parent 3689445 commit daf0c7e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/FileMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function bodyPart(string $partNumber, bool $peek = true): ?string
9292
/**
9393
* Determine if the message is empty.
9494
*/
95-
protected function isEmpty(): bool
95+
public function isEmpty(): bool
9696
{
9797
return empty($this->contents);
9898
}

src/HasParsedMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function parse(): IMessage
249249
/**
250250
* Determine if the message is empty.
251251
*/
252-
abstract protected function isEmpty(): bool;
252+
abstract public function isEmpty(): bool;
253253

254254
/**
255255
* Get the string representation of the message.

src/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function jsonSerialize(): array
292292
/**
293293
* Determine if the message is empty.
294294
*/
295-
protected function isEmpty(): bool
295+
public function isEmpty(): bool
296296
{
297297
return ! $this->hasHead() && ! $this->hasBody();
298298
}

src/Testing/FakeMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function bodyPart(string $partNumber, bool $peek = true): ?string
100100
/**
101101
* {@inheritDoc}
102102
*/
103-
protected function isEmpty(): bool
103+
public function isEmpty(): bool
104104
{
105105
return empty($this->contents);
106106
}

0 commit comments

Comments
 (0)