Skip to content

Commit

Permalink
Update FormItem.php
Browse files Browse the repository at this point in the history
修复php8下严格模式报错问题
  • Loading branch information
lphkxd committed Jul 10, 2021
1 parent 626a991 commit 589d275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/FormItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function getServeRole()
if (is_array($rules)) {
foreach ($rules as &$rule) {
if (is_string($rule)) {
$rule = str_replace('{{id}}', $id, $rule);
$rule = str_replace('{{id}}',(string)$id, $rule);
}
}
}
Expand Down

0 comments on commit 589d275

Please sign in to comment.