From 37e3fb92759c77872b622a7067bd2120b32fbb5d Mon Sep 17 00:00:00 2001 From: Juan Cristobal <65052633+juancristobalgd1@users.noreply.github.com> Date: Thu, 28 Mar 2024 03:41:45 +0100 Subject: [PATCH] update file --- src/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.php b/src/functions.php index 8e2d358..77f7f66 100644 --- a/src/functions.php +++ b/src/functions.php @@ -41,11 +41,11 @@ function app(?string $alias = null, $value = null): object static $instance; $instance ??= new App; - if (is_null($alias)) { + if(null === $alias) { return $instance; } - if (!is_null($value)) { + if(null !== $value) { return $instance->$alias = $value; }