diff --git a/CHANGELOG.md b/CHANGELOG.md index 135ea80..46906f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ - New method: `Polygon::rings()` - New method: `Geometry::isIdenticalTo()` +✨ **Improvements** + +- `GeometryCollection::geometryN()` is now properly documented with generics + ## [0.8.1](https://github.com/brick/geo/releases/tag/0.8.1) - 2022-10-14 ✨ **Improvements** diff --git a/src/GeometryCollection.php b/src/GeometryCollection.php index 8223c5f..f2a17d3 100644 --- a/src/GeometryCollection.php +++ b/src/GeometryCollection.php @@ -112,6 +112,8 @@ public function numGeometries() : int * * @param int $n The geometry number, 1-based. * + * @return T + * * @throws NoSuchGeometryException If there is no Geometry at this index. */ public function geometryN(int $n) : Geometry