Issues (3627)

app/autoload.php (1 issue)

1
<?php
2
3
if ('cli' !== PHP_SAPI && file_exists(dirname(__DIR__).'/var/bootstrap.php.cache')) {
4
    require_once dirname(__DIR__).'/var/bootstrap.php.cache';
5
}
6
7
use Composer\Autoload\ClassLoader;
8
use Doctrine\Common\Annotations\AnnotationRegistry;
9
10
/** @var ClassLoader $loader */
11
$loader = require dirname(__DIR__).'/vendor/autoload.php';
12
13
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
0 ignored issues
show
Deprecated Code introduced by
The function Doctrine\Common\Annotati...istry::registerLoader() has been deprecated: this method is deprecated and will be removed in doctrine/annotations 2.0 autoloading should be deferred to the globally registered autoloader by then. For now, use @example AnnotationRegistry::registerLoader('class_exists') ( Ignorable by Annotation )

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

13
/** @scrutinizer ignore-deprecated */ AnnotationRegistry::registerLoader([$loader, 'loadClass']);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
14
15
return $loader;
16