Skip to content

Commit

Permalink
fix: Revert comparison with null
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Dec 27, 2024
1 parent e70ba25 commit 0b85e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function cache(?string $key = null)
$cache = service('cache');

// No params - return cache object
if ((string) $key === '') {
if ($key === null) {
return $cache;
}

Expand Down Expand Up @@ -1128,7 +1128,7 @@ function timer(?string $name = null, ?callable $callable = null)
{
$timer = service('timer');

if ((string) $name === '') {
if ($name === null) {
return $timer;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/system/Email/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testEmailSendWithClearance($autoClear): void

$this->assertTrue($email->send($autoClear));

if ($autoClear) {
if (! $autoClear) {
$this->assertSame('[email protected]', $email->archive['recipients'][0]);
}
}
Expand Down

0 comments on commit 0b85e5c

Please sign in to comment.