Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249206

Change subject: Add type hint to pageCount()
......................................................................

Add type hint to pageCount()

Change-Id: Ia47b01d74addf394950c997117a5ed6c743befb7
---
M PdfHandler_body.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PdfHandler 
refs/changes/06/249206/1

diff --git a/PdfHandler_body.php b/PdfHandler_body.php
index 7cb9a51..5da7504 100644
--- a/PdfHandler_body.php
+++ b/PdfHandler_body.php
@@ -359,10 +359,10 @@
        }
 
        /**
-        * @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;

-- 
To view, visit https://gerrit.wikimedia.org/r/249206
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia47b01d74addf394950c997117a5ed6c743befb7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PdfHandler
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to