From d2f2df6787d3d625a397dfe9543fc6c957a4ba81 Mon Sep 17 00:00:00 2001 From: Topher DeRosia Date: Tue, 17 Jun 2025 13:04:55 -0400 Subject: [PATCH] Change type definition on notify_users to allow for null input (#34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sören Wünsch Signed-off-by: Topher DeRosia Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: Sören Wünsch Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: Joost de Valk --- inc/user-notification/namespace.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/user-notification/namespace.php b/inc/user-notification/namespace.php index d6df755..a85518a 100644 --- a/inc/user-notification/namespace.php +++ b/inc/user-notification/namespace.php @@ -18,10 +18,10 @@ function bootstrap() { /** * Add a notification to the site footer about FAIR/AspirePress. * - * @param string $content The current version or update notification. + * @param string|null $content The current version or update notification. * @return string */ -function notify_users( string $content = '' ) : string { +function notify_users( ?string $content = null ) : string { $message = sprintf( // translators: 1) Fair PM URL, 2) AspirePress URL. __( 'Updates served from the FAIR Package Manager and AspirePress', 'fair' ),