Skip to content

Commit 8c726d8

Browse files
committed
stripos
1 parent 1dd6fd7 commit 8c726d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/Doctrine/Query/QueryResultTypeWalker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
use function is_string;
5050
use function serialize;
5151
use function sprintf;
52-
use function strpos;
52+
use function stripos;
5353
use function strtolower;
5454
use function unserialize;
5555

@@ -1137,7 +1137,7 @@ public function walkLiteral($literal)
11371137
// the only way to force float is to use 123.4e0 scientific notation
11381138
// https://dev.mysql.com/doc/refman/8.0/en/number-literals.html
11391139

1140-
if (strpos((string) $value, 'e') !== false || strpos((string) $value, 'E') !== false) {
1140+
if (stripos((string) $value, 'e') !== false) {
11411141
$type = new ConstantFloatType((float) $value);
11421142
} else {
11431143
$type = new ConstantStringType((string) (float) $value);

0 commit comments

Comments
 (0)