Skip to content

Commit 3aaf4e9

Browse files
refactor(Stubs): convert is_null method to === null
1 parent 94667f5 commit 3aaf4e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$entity = $this->redisRepository->get();
22

3-
if (is_null($entity)) {
3+
if ($entity === null) {
44
$entities = $this->repository->{{ FunctionName }}(${{ ColumnName }});
55
$this->redisRepository->put($entities);
66
}

stubs/Repositories/Redis/getOneBy/base.query_cache_strategy.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $cacheKey = $this->redisRepository->makeKey([
55

66
$entity = $this->redisRepository->get($cacheKey);
77

8-
if (is_null($entity)) {
8+
if ($entity === null) {
99
$entity = $this->repository->{{ FunctionName }}(${{ ColumnName }});
1010
$this->redisRepository->put($cacheKey, $entity);
1111
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$entity = $this->redisRepository->get();
22

3-
if (is_null($entity)) {
3+
if ($entity === null) {
44
$entity = $this->repository->{{ FunctionName }}(${{ ColumnName }});
55
$this->redisRepository->put($entity);
66
}

0 commit comments

Comments
 (0)