Skip to content

Commit e1882ee

Browse files
committed
Add comment
1 parent 7eee239 commit e1882ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Requests/StoreAssetRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function prepareForValidation(): void
2929
// Guard against users passing in an array for company_id instead of an integer.
3030
// If the company_id is not an integer then we simply use what was
3131
// provided to be caught by model level validation later.
32+
// The use of is_numeric accounts for 1 and '1'.
3233
$idForCurrentUser = is_numeric($this->company_id)
3334
? Company::getIdForCurrentUser($this->company_id)
3435
: $this->company_id;

0 commit comments

Comments
 (0)