Skip to content

Commit

Permalink
Fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Mar 5, 2025
1 parent cbca846 commit 0bf044f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ parameters:
level: 6
paths:
- src
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
identifier: unset.possiblyHookedProperty
exceptions:
check:
missingCheckedExceptionInThrows: true
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry/Bezier.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function offsetSet($offset, $value): void
*/
public function offsetUnset($offset): void
{
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
unset($this->points[$offset]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry/Polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function offsetSet($offset, $value): void
*/
public function offsetUnset($offset): void
{
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
unset($this->points[$offset]);
}

/**
Expand Down

0 comments on commit 0bf044f

Please sign in to comment.