aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/composer/ClassLoader.php
diff options
context:
space:
mode:
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);
+ };
}
}