Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Mar 28, 2024
1 parent 0d2686a commit 37e3fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 37e3fb9

Please sign in to comment.