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]); } /**