Skip to content

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmikita committed Jun 2, 2024
1 parent 1916d67 commit 054b19a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static function notificationIfNewer(Core\Notification $notification)
if (! $exNotification instanceof Core\Notification) {
// Something went wrong, just insert the notification.
Store\Notification::insert($notification->getHash(), $notification);
return;

Check failure on line 70 in src/Register.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4)

Method BracketSpace\Notification\Register::notificationIfNewer() should return BracketSpace\Notification\Core\Notification but empty return statement found.

Check failure on line 70 in src/Register.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0)

Method BracketSpace\Notification\Register::notificationIfNewer() should return BracketSpace\Notification\Core\Notification but empty return statement found.

Check failure on line 70 in src/Register.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Method BracketSpace\Notification\Register::notificationIfNewer() should return BracketSpace\Notification\Core\Notification but empty return statement found.

Check failure on line 70 in src/Register.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2)

Method BracketSpace\Notification\Register::notificationIfNewer() should return BracketSpace\Notification\Core\Notification but empty return statement found.

Check failure on line 70 in src/Register.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3)

Method BracketSpace\Notification\Register::notificationIfNewer() should return BracketSpace\Notification\Core\Notification but empty return statement found.
}

// Existing Notification is newer or the same, do nothing.
Expand Down

0 comments on commit 054b19a

Please sign in to comment.