Skip to content

Commit 0bf044f

Browse files
committed
Fix phpstan issues
1 parent cbca846 commit 0bf044f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

phpstan.dist.neon

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ parameters:
22
level: 6
33
paths:
44
- src
5+
reportUnmatchedIgnoredErrors: false
6+
ignoreErrors:
7+
-
8+
identifier: unset.possiblyHookedProperty
59
exceptions:
610
check:
711
missingCheckedExceptionInThrows: true

src/Geometry/Bezier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function offsetSet($offset, $value): void
199199
*/
200200
public function offsetUnset($offset): void
201201
{
202-
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
202+
unset($this->points[$offset]);
203203
}
204204

205205
/**

src/Geometry/Polygon.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function offsetSet($offset, $value): void
171171
*/
172172
public function offsetUnset($offset): void
173173
{
174-
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
174+
unset($this->points[$offset]);
175175
}
176176

177177
/**

0 commit comments

Comments
 (0)