Skip to content

Commit 271048a

Browse files
committed
cleaner check whether attachment is null
1 parent 8416ed4 commit 271048a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CXml/Model/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public function __construct(
2121
public ?string $lang = null,
2222
?string $attachment = null,
2323
) {
24-
$this->attachment = null !== $attachment && '' !== $attachment && '0' !== $attachment ? new Url($attachment) : null;
24+
$this->attachment = ($attachment === null ? null : new Url($attachment));
2525
}
2626
}

0 commit comments

Comments
 (0)