Skip to content

Commit

Permalink
Remove untrue @throw docbloc annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Dec 8, 2024
1 parent 89dd82e commit 5a45c1f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Firebase/Messaging/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Kreait\Firebase\Messaging;

use JsonSerializable;
use Kreait\Firebase\Exception\InvalidArgumentException;

use function array_filter;

Expand All @@ -18,19 +17,13 @@
*/
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,
private ?string $imageUrl = null,
) {
}

/**
* @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);
Expand All @@ -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
{
Expand Down

0 comments on commit 5a45c1f

Please sign in to comment.