Composer fix changes
authorMargaret Epps <mepps@wikimedia.org>
Wed, 9 Aug 2017 18:50:47 +0000 (14:50 -0400)
committerMargaret Epps <mepps@wikimedia.org>
Wed, 9 Aug 2017 18:51:33 +0000 (14:51 -0400)
Bug: T172933
Change-Id: I6e4688dcf08c4a98ebc71b2940772dfc20a5c139

includes/Sanitizer.php
includes/filerepo/FileRepo.php
tests/phpunit/includes/specials/SpecialShortpagesTest.php

index 907da16..1562288 100644 (file)
@@ -815,7 +815,7 @@ class Sanitizer {
 
                        # Escape HTML id attributes
                        if ( $attribute === 'id' ) {
-                               $value = self::escapeIdForAttribute( $value, Sanitizer::ID_PRIMARY );
+                               $value = self::escapeIdForAttribute( $value, self::ID_PRIMARY );
                        }
 
                        # Escape HTML id reference lists
@@ -1331,7 +1331,7 @@ class Sanitizer {
         * @return string
         */
        private static function escapeIdInternal( $id, $mode ) {
-               $id = Sanitizer::decodeCharReferences( $id );
+               $id = self::decodeCharReferences( $id );
 
                switch ( $mode ) {
                        case 'html5':
index dc36e50..5005280 100644 (file)
@@ -1603,7 +1603,7 @@ class FileRepo {
                $params = [ 'src' => $path, 'headers' => $headers, 'options' => $optHeaders ];
 
                // T172851: HHVM does not flush the output properly, causing OOM
-               ob_start( NULL, 1048576 );
+               ob_start( null, 1048576 );
                ob_implicit_flush( true );
 
                $status = $this->newGood();
index 14c692a..a5fb50e 100644 (file)
@@ -18,7 +18,7 @@ class SpecialShortpagesTest extends MediaWikiTestCase {
                        'wgShortPagesNamespaceBlacklist' => $blacklistNS,
                        'wgContentNamespaces' => $contentNS
                ] );
-               $this->setTemporaryHook( 'ShortPagesQuery', function() {
+               $this->setTemporaryHook( 'ShortPagesQuery', function () {
                        // empty hook handler
                } );