We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6afa4 commit c214392Copy full SHA for c214392
src/InputFilter/RestService/PatchInputFilter.php
@@ -75,6 +75,7 @@ public function init()
75
'continue_if_empty' => true,
76
'validators' => [
77
new CallbackValidator(function ($value) {
78
+ // Make sure that the value is a numeric int or string and that there are no decimals
79
if (! is_numeric($value) || ((string) $value) !== (string) (int) $value) {
80
return false;
81
}
0 commit comments