Skip to content

Commit

Permalink
Better document GeometryCollection::geometryN()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Nov 21, 2022
1 parent 16e100a commit 276c04c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
2 changes: 2 additions & 0 deletions src/GeometryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 276c04c

Please sign in to comment.