Skip to content

Commit 9993dab

Browse files
No longer can add string + int
1 parent 5c1ebb4 commit 9993dab

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/Column.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ public static function castIntegerSafely($value)
136136
elseif (is_numeric($value) && floor($value) != $value)
137137
return (int) $value;
138138

139-
// If adding 0 to a string causes a float conversion,
140-
// we have a number over PHP_INT_MAX
141-
elseif (is_string($value) && is_float($value + 0))
142-
return (string) $value;
143-
144139
// If a float was passed and its greater than PHP_INT_MAX
145140
// (which could be wrong due to floating point precision)
146141
// We'll also check for equal to (>=) in case the precision

0 commit comments

Comments
 (0)