Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23d7a71

Browse files
Updated return type to avoid implicit float to int conversion
1 parent c8acaa8 commit 23d7a71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/ImageResize.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public function getDestHeight()
740740
*
741741
* @param integer $expectedSize
742742
* @param integer $position
743-
* @return float|integer
743+
* @return integer
744744
*/
745745
protected function getCropPosition($expectedSize, $position = self::CROPCENTER)
746746
{
@@ -758,7 +758,7 @@ protected function getCropPosition($expectedSize, $position = self::CROPCENTER)
758758
$size = $expectedSize / 4;
759759
break;
760760
}
761-
return $size;
761+
return (int) $size;
762762
}
763763

764764
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /