Passed
Push — master ( 83b89e...48455b )
by Hannes
02:13
created

Bootstrap   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace inroutephp\inroute\Compiler\Doctrine;
6
7
use inroutephp\inroute\Compiler\BootstrapInterface;
8
use inroutephp\inroute\Compiler\Settings\SettingsInterface;
9
use Doctrine\Common\Annotations\AnnotationRegistry;
10
11
/**
12
 * Register a global doctrine annotaion loader using class_exists
13
 */
14
final class Bootstrap implements BootstrapInterface
15
{
16
    public function bootstrap(SettingsInterface $settings): void
17
    {
18
        AnnotationRegistry::registerLoader('class_exists');
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

18
        /** @scrutinizer ignore-deprecated */ AnnotationRegistry::registerLoader('class_exists');

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...
19
    }
20
}
21