Skip to content

Commit fbe3d39

Browse files
Merge pull request #20107 from kamil-tekiela/Fix-20106
Add missing constant
2 parents 0a5032d + f7354fb commit fbe3d39

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utils/Gis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function convertToWellKnownText(string $data, bool $includeSRID =
4747
$wktsql .= ', ' . $spatialSrid . "(x'" . $hex . "')";
4848
}
4949

50-
$wktarr = $dbi->fetchSingleRow($wktsql);
50+
$wktarr = $dbi->fetchSingleRow($wktsql, DatabaseInterface::FETCH_NUM);
5151

5252
$wktval = $wktarr[0] ?? '';
5353

tests/unit/Utils/GisTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testConvertToWellKnownText(
4646

4747
$dbi->expects($SRIDOption ? self::once() : self::exactly(2))
4848
->method('fetchSingleRow')
49-
->with($expectedQuery)
49+
->with($expectedQuery, DatabaseInterface::FETCH_NUM)
5050
->willReturn($returnData);
5151

5252
DatabaseInterface::$instance = $dbi;

0 commit comments

Comments
 (0)