Skip to content

Commit cbca846

Browse files
committed
Ignore phpstan error unset.possiblyHookedProperty
To be compatible with older PHP versions.
1 parent 00bc65e commit cbca846

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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]);
202+
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
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]);
174+
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty
175175
}
176176

177177
/**

0 commit comments

Comments
 (0)