Skip to content

Commit 069a985

Browse files
committed
refactor: code improvement
1 parent 4f165ad commit 069a985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Request/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function jsonSerialize()
197197

198198
public function validate($rules, $messages = null, $attributeLabels = null)
199199
{
200-
if (!empty($this->files())) {
200+
if (\count($this->files()) > 0) {
201201
$this->attributes = array_merge($this->attributes, $this->files());
202202
}
203203

0 commit comments

Comments
 (0)