diff --git a/src/Illuminate/Pagination/Cursor.php b/src/Illuminate/Pagination/Cursor.php index c95709537fea..e8edf6526bc8 100644 --- a/src/Illuminate/Pagination/Cursor.php +++ b/src/Illuminate/Pagination/Cursor.php @@ -43,7 +43,7 @@ public function __construct(array $parameters, $pointsToNextItems = true) */ public function parameter(string $parameterName) { - if (! isset($this->parameters[$parameterName])) { + if (! array_key_exists($parameterName, $this->parameters)) { throw new UnexpectedValueException("Unable to find parameter [{$parameterName}] in pagination item."); }