From 0bf044f37ea5c54105e353d744c80cb1a2fa592d Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Wed, 5 Mar 2025 17:03:14 +0100 Subject: [PATCH] Fix phpstan issues --- phpstan.dist.neon | 4 ++++ src/Geometry/Bezier.php | 2 +- src/Geometry/Polygon.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/phpstan.dist.neon b/phpstan.dist.neon index 4bf57db2..d4687cf4 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -2,6 +2,10 @@ parameters: level: 6 paths: - src + reportUnmatchedIgnoredErrors: false + ignoreErrors: + - + identifier: unset.possiblyHookedProperty exceptions: check: missingCheckedExceptionInThrows: true diff --git a/src/Geometry/Bezier.php b/src/Geometry/Bezier.php index d443f618..1dabfde0 100644 --- a/src/Geometry/Bezier.php +++ b/src/Geometry/Bezier.php @@ -199,7 +199,7 @@ class Bezier implements IteratorAggregate, Countable, ArrayAccess, DrawableInter */ public function offsetUnset($offset): void { - unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty + unset($this->points[$offset]); } /** diff --git a/src/Geometry/Polygon.php b/src/Geometry/Polygon.php index 557cab81..55e3a412 100644 --- a/src/Geometry/Polygon.php +++ b/src/Geometry/Polygon.php @@ -171,7 +171,7 @@ class Polygon implements IteratorAggregate, Countable, ArrayAccess, DrawableInte */ public function offsetUnset($offset): void { - unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty + unset($this->points[$offset]); } /**