Skip to content

Commit b6ebf0e

Browse files
committed
Use max function
1 parent 27bf016 commit b6ebf0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function getSurround() : int
259259
*/
260260
public function setSurround(int $surround) : static
261261
{
262-
$this->surround = $surround < 0 ? 0 : $surround;
262+
$this->surround = \max($surround, 0);
263263
return $this;
264264
}
265265

0 commit comments

Comments
 (0)