Skip to content

Commit e8536c3

Browse files
committed
refactor: replace empty()
1 parent d6adeb3 commit e8536c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpstan-baseline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
];
3434
$ignoreErrors[] = [
3535
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
36-
'count' => 15,
36+
'count' => 14,
3737
'path' => __DIR__ . '/system/BaseModel.php',
3838
];
3939
$ignoreErrors[] = [

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ public function validate($data): bool
14631463

14641464
$rules = $this->getValidationRules();
14651465

1466-
if (empty($rules)) {
1466+
if ($rules === []) {
14671467
return true;
14681468
}
14691469

0 commit comments

Comments
 (0)