aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/composer/ClassLoader.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-07 08:46:28 +0000
committerMario <mario@mariovavti.com>2023-05-07 08:46:28 +0000
commitbf2d41eb14ef066d6e316b62270c03be27e9b01c (patch)
tree60bcebcaaefbb30d1ec0e3993f8ceb7a213b47eb /vendor/composer/ClassLoader.php
parent158f9afb376baa3edb4b7a4ad1a0d2ebd2c713ed (diff)
downloadvolse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.tar.gz
volse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.tar.bz2
volse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.zip
composer autoload
Diffstat (limited to 'vendor/composer/ClassLoader.php')
-rw-r--r--vendor/composer/ClassLoader.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php
index fd56bd7d8..a72151c77 100644
--- a/vendor/composer/ClassLoader.php
+++ b/vendor/composer/ClassLoader.php
@@ -429,7 +429,8 @@ class ClassLoader
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
- (self::$includeFile)($file);
+ $includeFile = self::$includeFile;
+ $includeFile($file);
return true;
}
@@ -560,7 +561,10 @@ class ClassLoader
return false;
}
- private static function initializeIncludeClosure(): void
+ /**
+ * @return void
+ */
+ private static function initializeIncludeClosure()
{
if (self::$includeFile !== null) {
return;
@@ -574,8 +578,8 @@ class ClassLoader
* @param string $file
* @return void
*/
- self::$includeFile = static function($file) {
+ self::$includeFile = \Closure::bind(static function($file) {
include $file;
- };
+ }, null, null);
}
}