Skip to content

Commit

Permalink
fix incorrect released check when releasing c object
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Apr 8, 2024
1 parent 6bae3e5 commit d3f4ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/WrappedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function checkValid(): void
*/
public final function release(): static
{
if (!$this->isReleased() || $this->isBeingReleased) {
if ($this->isReleased() || $this->isBeingReleased) {
return $this;
}
$this->isBeingReleased = true;
Expand Down

0 comments on commit d3f4ce2

Please sign in to comment.