We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8416ed4 commit 271048aCopy full SHA for 271048a
src/CXml/Model/Comment.php
@@ -21,6 +21,6 @@ public function __construct(
21
public ?string $lang = null,
22
?string $attachment = null,
23
) {
24
- $this->attachment = null !== $attachment && '' !== $attachment && '0' !== $attachment ? new Url($attachment) : null;
+ $this->attachment = ($attachment === null ? null : new Url($attachment));
25
}
26
0 commit comments