Skip to content

Commit ec747ff

Browse files
committed
fixed psalm typing issues
1 parent b907b6c commit ec747ff

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/Formatter/Specialised/HttpOGMTranslator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ private function translatePoint(stdClass $value): PointInterface
309309
$coordinates[2],
310310
);
311311
}
312-
throw new UnexpectedValueException('A point with srid '.$srid.' and name '.$crs->name.' has been returned, which has not been implemented.');
312+
/** @var string $name */
313+
$name = $crs->name;
314+
throw new UnexpectedValueException('A point with srid '.$srid.' and name '.$name.' has been returned, which has not been implemented.');
313315
}
314316

315317
/**

src/Types/Abstract3DPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function convertToBolt(): IStructure
4141
*/
4242
public function __construct(float $x, float $y, float $z)
4343
{
44-
parent::__construct($x, $y, $crs, $srid);
44+
parent::__construct($x, $y);
4545
$this->z = $z;
4646
}
4747

src/Types/WGS843DPoint.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,9 @@ public function getHeight(): float
4949
{
5050
return $this->getZ();
5151
}
52+
53+
public function getCrs(): string
54+
{
55+
return self::CRS;
56+
}
5257
}

0 commit comments

Comments
 (0)