Add some @noinspection flags to doPostOutputShutdown()
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 2 Dec 2017 20:38:37 +0000 (12:38 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 2 Dec 2017 20:38:58 +0000 (12:38 -0800)
This are in "use" clause of $callback, by reference

Change-Id: Iadb1d25263dbafe2bd12223db62e1c93e2188bde

includes/MediaWiki.php

index 9e3bc10..2aeefc6 100644 (file)
@@ -726,10 +726,12 @@ class MediaWiki {
                if ( function_exists( 'register_postsend_function' ) ) {
                        // https://github.com/facebook/hhvm/issues/1230
                        register_postsend_function( $callback );
+                       /** @noinspection PhpUnusedLocalVariableInspection */
                        $blocksHttpClient = false;
                } else {
                        if ( function_exists( 'fastcgi_finish_request' ) ) {
                                fastcgi_finish_request();
+                               /** @noinspection PhpUnusedLocalVariableInspection */
                                $blocksHttpClient = false;
                        } else {
                                // Either all DB and deferred updates should happen or none.