Skip to content

Commit c903f86

Browse files
committed
fix: improve exception message
1 parent 2d99c24 commit c903f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ public function updateBatch(?array $set = null, ?string $index = null, int $batc
10421042
public function delete($id = null, bool $purge = false)
10431043
{
10441044
if (is_bool($id)) {
1045-
throw new InvalidArgumentException('$id should not be boolean.');
1045+
throw new InvalidArgumentException('delete(): argument #1 ($id) should not be boolean.');
10461046
}
10471047

10481048
if ($id && (is_numeric($id) || is_string($id))) {

0 commit comments

Comments
 (0)