Skip to content

Commit 1eeb7e4

Browse files
ppaulisweierophinney
authored andcommitted
#75 using strict comparison to avoid bugs with future PHP versions
Signed-off-by: Pascal Paulis <[email protected]>
1 parent 2560936 commit 1eeb7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InputFilter/RestService/PatchInputFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function init()
7575
'continue_if_empty' => true,
7676
'validators' => [
7777
new CallbackValidator(function ($value) {
78-
if (!is_numeric($value) || intval($value) != $value) {
78+
if (!is_numeric($value) || ((string)$value) !== (string)(int)$value) {
7979
return false;
8080
}
8181

0 commit comments

Comments
 (0)