Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Feb 1, 2025
1 parent c25adb0 commit c6aff28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/src/Fields/FormElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function getRequestValue(string|int|null $index = null): mixed
) ?? false
);

if($this->onRequestValue !== null) {
if($this->onRequestValue instanceof Closure) {
return \call_user_func(
$this->onRequestValue,
$value,
Expand Down

0 comments on commit c6aff28

Please sign in to comment.