diff --git a/src/Firebase/Messaging/Notification.php b/src/Firebase/Messaging/Notification.php index 534aad86..b6677209 100644 --- a/src/Firebase/Messaging/Notification.php +++ b/src/Firebase/Messaging/Notification.php @@ -5,7 +5,6 @@ namespace Kreait\Firebase\Messaging; use JsonSerializable; -use Kreait\Firebase\Exception\InvalidArgumentException; use function array_filter; @@ -18,9 +17,6 @@ */ final class Notification implements JsonSerializable { - /** - * @throws InvalidArgumentException if both title and body are null - */ private function __construct( private ?string $title = null, private ?string $body = null, @@ -28,9 +24,6 @@ private function __construct( ) { } - /** - * @throws InvalidArgumentException if both title and body are null - */ public static function create(?string $title = null, ?string $body = null, ?string $imageUrl = null): self { return new self($title, $body, $imageUrl); @@ -42,8 +35,6 @@ public static function create(?string $title = null, ?string $body = null, ?stri * body?: string, * image?: string * } $data - * - * @throws InvalidArgumentException if both title and body are null */ public static function fromArray(array $data): self {