update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package setasign\Fpdi
|
||||
* @copyright Copyright (c) 2024 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @copyright Copyright (c) 2026 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
*/
|
||||
|
||||
@@ -124,6 +124,8 @@ public function getPage($pageNumber)
|
||||
);
|
||||
}
|
||||
|
||||
$pageNumber = (int)$pageNumber;
|
||||
|
||||
if ($pageNumber < 1 || $pageNumber > $this->getPageCount()) {
|
||||
throw new \InvalidArgumentException(
|
||||
\sprintf(
|
||||
|
||||
Reference in New Issue
Block a user