Skip to content

Commit

Permalink
Ignore phpstan error unset.possiblyHookedProperty
Browse files Browse the repository at this point in the history
To be compatible with older PHP versions.
  • Loading branch information
olivervogel committed Mar 5, 2025
1 parent 00bc65e commit cbca846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Geometry/Bezier.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function offsetSet($offset, $value): void
*/
public function offsetUnset($offset): void
{
unset($this->points[$offset]);
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 202.

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 202.

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 202.

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 202.

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 202.

Check failure on line 202 in src/Geometry/Bezier.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 202.
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry/Polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function offsetSet($offset, $value): void
*/
public function offsetUnset($offset): void
{
unset($this->points[$offset]);
unset($this->points[$offset]); // @phpstan-ignore unset.possiblyHookedProperty

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 174.

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 174.

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 174.

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 174.

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 - ImageMagick 6.9.12-55

No error with identifier unset.possiblyHookedProperty is reported on line 174.

Check failure on line 174 in src/Geometry/Polygon.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 - ImageMagick 7.1.1-32

No error with identifier unset.possiblyHookedProperty is reported on line 174.
}

/**
Expand Down

0 comments on commit cbca846

Please sign in to comment.