From 5a45c1f66141a6ae0d7586bdbc5b66c4ba962314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Sun, 8 Dec 2024 14:59:53 +0100 Subject: [PATCH] Remove untrue `@throw` docbloc annotation --- src/Firebase/Messaging/Notification.php | 9 --------- 1 file changed, 9 deletions(-) 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 {