Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / debug / logger / monolog / BufferHandler.php
index 3ebd0b1..331b718 100644 (file)
@@ -26,7 +26,7 @@ use DeferredUpdates;
 use Monolog\Handler\BufferHandler as BaseBufferHandler;
 
 /**
- * Updates the Monolog BufferHandler to use DeferredUpdates rather
+ * Updates \Monolog\Handler\BufferHandler to use DeferredUpdates rather
  * than register_shutdown_function. On supported platforms this will
  * use register_postsend_function or fastcgi_finish_request() to delay
  * until after the request has shutdown and we are no longer delaying
@@ -37,11 +37,10 @@ class BufferHandler extends BaseBufferHandler {
         * {@inheritDoc}
         */
        public function handle( array $record ) {
-               if (!$this->initialized) {
-                       DeferredUpdates::addCallableUpdate( array( $this, 'close' ) );
+               if ( !$this->initialized ) {
+                       DeferredUpdates::addCallableUpdate( [ $this, 'close' ] );
                        $this->initialized = true;
                }
                return parent::handle( $record );
        }
 }
-