File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Formatter/Specialised Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ private function translatePoint(string $value): PointInterface
171
171
return new Cartesian3DPoint (
172
172
(float ) $ coordinates [0 ],
173
173
(float ) $ coordinates [1 ],
174
- (float ) $ coordinates [2 ],
174
+ (float ) ( $ coordinates [2 ] ?? 0.0 ) ,
175
175
);
176
176
}
177
177
if ($ srid === WGS84Point::SRID ) {
@@ -184,7 +184,7 @@ private function translatePoint(string $value): PointInterface
184
184
return new WGS843DPoint (
185
185
(float ) $ coordinates [0 ],
186
186
(float ) $ coordinates [1 ],
187
- (float ) $ coordinates [2 ],
187
+ (float ) ( $ coordinates [2 ] ?? 0.0 ) ,
188
188
);
189
189
}
190
190
throw new UnexpectedValueException ('A point with srid ' .$ srid .' has been returned, which has not been implemented. ' );
@@ -320,6 +320,7 @@ private function translateBinary(): Closure
320
320
* @return Date|LocalDateTime|LocalTime|DateTime|Duration|Time
321
321
*
322
322
* @psalm-suppress ImpureMethodCall
323
+ * @psalm-suppress ImpureFunctionCall
323
324
* @psalm-suppress PossiblyFalseReference
324
325
*/
325
326
private function translateDateTime (string $ datetime )
You can’t perform that action at this time.
0 commit comments