mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-28 02:00:37 +00:00
Add type hint to getPageDimensions()
Change-Id: I2eecc73f3274f684ef8c426cb4ca5b3785284368
This commit is contained in:
parent
687d759d1b
commit
04301cc798
|
@ -375,7 +375,7 @@ class PdfHandler extends ImageHandler {
|
|||
* @param $page int
|
||||
* @return array|bool
|
||||
*/
|
||||
function getPageDimensions( $image, $page ) {
|
||||
function getPageDimensions( File $image, $page ) {
|
||||
$data = $this->getMetaArray( $image );
|
||||
return PdfImage::getPageSize( $data, $page );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue