Foxtrott has uploaded a new change for review.

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

Change subject: Fix Fatal error: Cannot use object of type Closure
......................................................................

Fix Fatal error: Cannot use object of type Closure

...as array in 
D:\xampp\htdocs\SNWiki\extensions\Bootstrap\src\Hooks\SetupAfterCache.php on 
line 119

Change-Id: I446246e53b3775227e040a75f195d5c20009a0c3
---
M src/Hooks/SetupAfterCache.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Bootstrap 
refs/changes/05/194505/1

diff --git a/src/Hooks/SetupAfterCache.php b/src/Hooks/SetupAfterCache.php
index 4a9e350..8ef7694 100644
--- a/src/Hooks/SetupAfterCache.php
+++ b/src/Hooks/SetupAfterCache.php
@@ -116,6 +116,10 @@
 
                foreach ( $autoloadFunctions as $autoloadFunction ) {
 
+                       if ( is_object( $autoloadFunction ) && ( 
$autoloadFunction instanceof Closure ) ) {
+                               continue;
+                       }
+
                        $classLoader = $autoloadFunction[ 0 ];
 
                        if ( is_a( $classLoader, 
'\Composer\Autoload\ClassLoader' ) ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I446246e53b3775227e040a75f195d5c20009a0c3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Bootstrap
Gerrit-Branch: master
Gerrit-Owner: Foxtrott <[email protected]>

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

Reply via email to