diff --git a/CHANGELOG.md b/CHANGELOG.md index 8acea8b..b3b5846 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ✨ **Improvements** +- Better Psalm annotations for geometry getters - Removed outdated suggestion in `composer.json` ## [0.8.0](https://github.com/brick/geo/releases/tag/0.8.0) - 2022-10-11 diff --git a/src/CircularString.php b/src/CircularString.php index b19ed38..ffcda55 100644 --- a/src/CircularString.php +++ b/src/CircularString.php @@ -115,6 +115,8 @@ public function pointN(int $n) : Point /** * Returns the points that compose this CircularString. * + * @psalm-return list + * * @return Point[] */ public function points() : array diff --git a/src/CompoundCurve.php b/src/CompoundCurve.php index f2d1198..b4c81a9 100644 --- a/src/CompoundCurve.php +++ b/src/CompoundCurve.php @@ -127,6 +127,8 @@ public function curveN(int $n) : Curve /** * Returns the curves that compose this CompoundCurve. * + * @psalm-return list + * * @return Curve[] */ public function curves() : array diff --git a/src/GeometryCollection.php b/src/GeometryCollection.php index 8d5080f..f39182a 100644 --- a/src/GeometryCollection.php +++ b/src/GeometryCollection.php @@ -124,6 +124,8 @@ public function geometryN(int $n) : Geometry /** * Returns the geometries that compose this GeometryCollection. * + * @psalm-return list + * * @return Geometry[] */ public function geometries() : array diff --git a/src/LineString.php b/src/LineString.php index c4080d5..388642d 100644 --- a/src/LineString.php +++ b/src/LineString.php @@ -157,6 +157,8 @@ public function pointN(int $n) : Point /** * Returns the points that compose this LineString. * + * @psalm-return list + * * @return Point[] */ public function points() : array diff --git a/src/PolyhedralSurface.php b/src/PolyhedralSurface.php index fae0230..914d76c 100644 --- a/src/PolyhedralSurface.php +++ b/src/PolyhedralSurface.php @@ -101,6 +101,8 @@ public function patchN(int $n) : Polygon /** * Returns the patches that compose this PolyhedralSurface. * + * @psalm-return list + * * @return Polygon[] */ public function patches() : array