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 @@ -202,7 +202,7 @@ private function getSRID(string $value): int
202
202
}
203
203
204
204
/**
205
- * @return array{0: string, 1: string, 2: string} $coordinates
205
+ * @return array{0: string, 1: string, 2? : string} $coordinates
206
206
*/
207
207
private function getCoordinates (string $ value ): array
208
208
{
@@ -216,10 +216,11 @@ private function getCoordinates(string $value): array
216
216
throw new UnexpectedValueException ('Expected 3 coordinates in string: ' .$ value );
217
217
}
218
218
219
- if (count ($ coordinates ) !== 2 ) {
219
+ if ($ matches [ 1 ] !== ' Z ' && count ($ coordinates ) !== 2 ) {
220
220
throw new UnexpectedValueException ('Expected 2 coordinates in string: ' .$ value );
221
221
}
222
222
223
+ /** @var array{0: string, 1: string, 2?: string} */
223
224
return $ coordinates ;
224
225
}
225
226
You can’t perform that action at this time.
0 commit comments