Skip to content

Commit

Permalink
[fix] Size.php php8.1 Implicit conversion from float
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrainventures committed May 20, 2022
1 parent c0a578c commit 54d22c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Intervention/Image/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function setPivot(Point $point)
*/
public function getWidth()
{
return $this->width;
return intval($this->width);
}

/**
Expand All @@ -81,7 +81,7 @@ public function getWidth()
*/
public function getHeight()
{
return $this->height;
return intval($this->height);
}

/**
Expand Down

0 comments on commit 54d22c7

Please sign in to comment.