mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-01 05:10:14 +00:00
93b225a3b3
[Php72] Handle crash on CreateFunctionToAnonymousFunctionRector on quoted variable arg concat (#3300)
50 lines
1.6 KiB
PHP
50 lines
1.6 KiB
PHP
<?php
|
|
|
|
// autoload_real.php @generated by Composer
|
|
|
|
class ComposerAutoloaderInit0036377c8e08e1085a7ba10432029c96
|
|
{
|
|
private static $loader;
|
|
|
|
public static function loadClassLoader($class)
|
|
{
|
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
|
require __DIR__ . '/ClassLoader.php';
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @return \Composer\Autoload\ClassLoader
|
|
*/
|
|
public static function getLoader()
|
|
{
|
|
if (null !== self::$loader) {
|
|
return self::$loader;
|
|
}
|
|
|
|
spl_autoload_register(array('ComposerAutoloaderInit0036377c8e08e1085a7ba10432029c96', 'loadClassLoader'), true, true);
|
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
|
spl_autoload_unregister(array('ComposerAutoloaderInit0036377c8e08e1085a7ba10432029c96', 'loadClassLoader'));
|
|
|
|
require __DIR__ . '/autoload_static.php';
|
|
call_user_func(\Composer\Autoload\ComposerStaticInit0036377c8e08e1085a7ba10432029c96::getInitializer($loader));
|
|
|
|
$loader->setClassMapAuthoritative(true);
|
|
$loader->register(true);
|
|
|
|
$filesToLoad = \Composer\Autoload\ComposerStaticInit0036377c8e08e1085a7ba10432029c96::$files;
|
|
$requireFile = static function ($fileIdentifier, $file) {
|
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
|
|
|
require $file;
|
|
}
|
|
};
|
|
foreach ($filesToLoad as $fileIdentifier => $file) {
|
|
($requireFile)($fileIdentifier, $file);
|
|
}
|
|
|
|
return $loader;
|
|
}
|
|
}
|