1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-13 17:34:04 +02:00

Fix phpstan issues

This commit is contained in:
Oliver Vogel
2025-03-05 17:03:14 +01:00
parent cbca8468f1
commit 0bf044f37e
3 changed files with 6 additions and 2 deletions

View File

@@ -2,6 +2,10 @@ parameters:
level: 6 level: 6
paths: paths:
- src - src
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
identifier: unset.possiblyHookedProperty
exceptions: exceptions:
check: check:
missingCheckedExceptionInThrows: true missingCheckedExceptionInThrows: true

View File

@@ -199,7 +199,7 @@ class Bezier implements IteratorAggregate, Countable, ArrayAccess, DrawableInter
*/ */
public function offsetUnset($offset): void public function offsetUnset($offset): void
{ {
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty unset($this->points[$offset]);
} }
/** /**

View File

@@ -171,7 +171,7 @@ class Polygon implements IteratorAggregate, Countable, ArrayAccess, DrawableInte
*/ */
public function offsetUnset($offset): void public function offsetUnset($offset): void
{ {
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty unset($this->points[$offset]);
} }
/** /**