mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-24 00:07:10 +00:00
Add type hint to pageCount()
Change-Id: Ia47b01d74addf394950c997117a5ed6c743befb7
This commit is contained in:
parent
687d759d1b
commit
ca786d9b80
|
@ -359,10 +359,10 @@ class PdfHandler extends ImageHandler {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param $image
|
||||
* @param File $image
|
||||
* @return bool|int
|
||||
*/
|
||||
function pageCount( $image ) {
|
||||
function pageCount( File $image ) {
|
||||
$data = $this->getMetaArray( $image );
|
||||
if ( !$data || !isset( $data['Pages'] ) ) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue