Add type hint to pageCount()

Change-Id: Ia47b01d74addf394950c997117a5ed6c743befb7
This commit is contained in:
Aaron Schulz 2015-10-27 12:05:54 -07:00
parent 687d759d1b
commit ca786d9b80

View file

@ -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;