@@ -115,7 +115,7 @@ |
||
| 115 | 115 | throw new InvalidArgumentException($msg, 1, $e); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - $stringValue = ltrim($obj, "${intValue}"); |
|
| 118 | + $stringValue = ltrim($obj, "${intvalue}"); |
|
| 119 | 119 | |
| 120 | 120 | // Validate that 0 (zero) is not interpreted as '' (empty string) |
| 121 | 121 | if ($stringValue === $obj) { |
@@ -164,18 +164,18 @@ discard block |
||
| 164 | 164 | public function methodIsProvider() |
| 165 | 165 | { |
| 166 | 166 | return [ |
| 167 | - [true, (bool) true, [true, false]], |
|
| 168 | - [false, (bool) false, [true, false, 0]], |
|
| 169 | - [true, (int) 123, [11, 0, -34]], |
|
| 170 | - [false, (int) 123, [11, 0, -34.456]], |
|
| 171 | - [true, (float) 1.23, [11.0, 0.0, -34.6]], |
|
| 172 | - [false, (float) 1.23, [11.0, 0, -34.4]], |
|
| 173 | - [true, (string) '', ['', '0', 'i am not a string']], |
|
| 174 | - [false, (string) '', [11.2, '0', true]], |
|
| 175 | - [true, null, [null, null]], |
|
| 176 | - [false, null, [[], null, false]], |
|
| 177 | - [true, new stdClass, [new stdClass, new stdClass]], |
|
| 178 | - [false, new stdClass, [[], new stdClass, true]], |
|
| 167 | + [true, (bool) true, [true, false]], |
|
| 168 | + [false, (bool) false, [true, false, 0]], |
|
| 169 | + [true, (int) 123, [11, 0, -34]], |
|
| 170 | + [false, (int) 123, [11, 0, -34.456]], |
|
| 171 | + [true, (float) 1.23, [11.0, 0.0, -34.6]], |
|
| 172 | + [false, (float) 1.23, [11.0, 0, -34.4]], |
|
| 173 | + [true, (string) '', ['', '0', 'i am not a string']], |
|
| 174 | + [false, (string) '', [11.2, '0', true]], |
|
| 175 | + [true, null, [null, null]], |
|
| 176 | + [false, null, [[], null, false]], |
|
| 177 | + [true, new stdClass, [new stdClass, new stdClass]], |
|
| 178 | + [false, new stdClass, [[], new stdClass, true]], |
|
| 179 | 179 | ]; |
| 180 | 180 | } |
| 181 | 181 | |
@@ -190,18 +190,18 @@ discard block |
||
| 190 | 190 | public function methodIsInProvider() |
| 191 | 191 | { |
| 192 | 192 | return [ |
| 193 | - [true, (bool) true, [true, false, 1, 'string']], |
|
| 194 | - [false, (bool) false, ['true', 'false', 0, 1]], |
|
| 195 | - [true, (int) 123, [11, 0, -34]], |
|
| 196 | - [false, (int) 123, [11.2, '0', true]], |
|
| 197 | - [true, (float) 1.23, [11, 0.5, -34]], |
|
| 198 | - [false, (float) 1.23, [11, '0', true]], |
|
| 199 | - [true, (string) '', [11, '0', -34]], |
|
| 200 | - [false, (string) '', [11.2, 0, true]], |
|
| 201 | - [true, null, [null, true, 4]], |
|
| 202 | - [false, null, [[], 'null', false]], |
|
| 203 | - [true, new stdClass, [new stdClass, new A, 0]], |
|
| 204 | - [false, new stdClass, [[], 'stdClass', true]], |
|
| 193 | + [true, (bool) true, [true, false, 1, 'string']], |
|
| 194 | + [false, (bool) false, ['true', 'false', 0, 1]], |
|
| 195 | + [true, (int) 123, [11, 0, -34]], |
|
| 196 | + [false, (int) 123, [11.2, '0', true]], |
|
| 197 | + [true, (float) 1.23, [11, 0.5, -34]], |
|
| 198 | + [false, (float) 1.23, [11, '0', true]], |
|
| 199 | + [true, (string) '', [11, '0', -34]], |
|
| 200 | + [false, (string) '', [11.2, 0, true]], |
|
| 201 | + [true, null, [null, true, 4]], |
|
| 202 | + [false, null, [[], 'null', false]], |
|
| 203 | + [true, new stdClass, [new stdClass, new A, 0]], |
|
| 204 | + [false, new stdClass, [[], 'stdClass', true]], |
|
| 205 | 205 | ]; |
| 206 | 206 | } |
| 207 | 207 | |