Skip to content

Commit 0b85e5c

Browse files
committed
fix: Revert comparison with null
1 parent e70ba25 commit 0b85e5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

system/Common.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function cache(?string $key = null)
7575
$cache = service('cache');
7676

7777
// No params - return cache object
78-
if ((string) $key === '') {
78+
if ($key === null) {
7979
return $cache;
8080
}
8181

@@ -1128,7 +1128,7 @@ function timer(?string $name = null, ?callable $callable = null)
11281128
{
11291129
$timer = service('timer');
11301130

1131-
if ((string) $name === '') {
1131+
if ($name === null) {
11321132
return $timer;
11331133
}
11341134

tests/system/Email/EmailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testEmailSendWithClearance($autoClear): void
5555

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

58-
if ($autoClear) {
58+
if (! $autoClear) {
5959
$this->assertSame('[email protected]', $email->archive['recipients'][0]);
6060
}
6161
}

0 commit comments

Comments
 (0)