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