Skip to content

Commit

Permalink
refactor: replace empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 25, 2023
1 parent d6adeb3 commit e8536c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
];
$ignoreErrors[] = [
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
'count' => 15,
'count' => 14,
'path' => __DIR__ . '/system/BaseModel.php',
];
$ignoreErrors[] = [
Expand Down
2 changes: 1 addition & 1 deletion system/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ public function validate($data): bool

$rules = $this->getValidationRules();

if (empty($rules)) {
if ($rules === []) {
return true;
}

Expand Down

0 comments on commit e8536c3

Please sign in to comment.