Issues (224)

vendor/composer/autoload_real.php (1 issue)

Severity
1
<?php
2
3
// autoload_real.php @generated by Composer
4
5
class ComposerAutoloaderInitHumbugBox451
6
{
7
    private static $loader;
8
9
    public static function loadClassLoader($class)
10
    {
11
        if ('Composer\Autoload\ClassLoader' === $class) {
12
            require __DIR__ . '/ClassLoader.php';
13
        }
14
    }
15
16
    /**
17
     * @return \Composer\Autoload\ClassLoader
18
     */
19
    public static function getLoader()
20
    {
21
        if (null !== self::$loader) {
22
            return self::$loader;
23
        }
24
25
        spl_autoload_register(array('ComposerAutoloaderInitHumbugBox451', 'loadClassLoader'), true, true);
26
        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
0 ignored issues
show
The call to Composer\Autoload\ClassLoader::__construct() has too many arguments starting with dirname(__DIR__). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
        self::$loader = $loader = /** @scrutinizer ignore-call */ new \Composer\Autoload\ClassLoader(\dirname(__DIR__));

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.

Loading history...
27
        spl_autoload_unregister(array('ComposerAutoloaderInitHumbugBox451', 'loadClassLoader'));
28
29
        require __DIR__ . '/autoload_static.php';
30
        call_user_func(\Composer\Autoload\ComposerStaticInitHumbugBox451::getInitializer($loader));
31
32
        $loader->setClassMapAuthoritative(true);
33
        $loader->register(true);
34
35
        return $loader;
36
    }
37
}
38