Skip to content

Commit c214392

Browse files
committed
added comment
Signed-off-by: Pascal Paulis <[email protected]>
1 parent 9f6afa4 commit c214392

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/InputFilter/RestService/PatchInputFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function init()
7575
'continue_if_empty' => true,
7676
'validators' => [
7777
new CallbackValidator(function ($value) {
78+
// Make sure that the value is a numeric int or string and that there are no decimals
7879
if (! is_numeric($value) || ((string) $value) !== (string) (int) $value) {
7980
return false;
8081
}

0 commit comments

Comments
 (0)