Skip to content

Commit add59d7

Browse files
committed
used native PHP 8 functions
1 parent afd56e2 commit add59d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mail/MimePart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function getEncodedMessage(): string
256256
}
257257

258258
if ($this->parts) {
259-
if (substr($output, -strlen(self::EOL)) !== self::EOL) {
259+
if (!str_ends_with($output, self::EOL)) {
260260
$output .= self::EOL;
261261
}
262262

0 commit comments

Comments
 (0)