Skip to content

Commit d0e3c02

Browse files
committed
Use ::class keyword when possible
1 parent 49ead31 commit d0e3c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
}
2121

2222
// Detect if we're loaded by an actual run of phpunit
23-
if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit\TextUI\Command', false)) {
23+
if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists(\PHPUnit\TextUI\Command::class, false)) {
2424
return;
2525
}
2626

2727
// Enforce a consistent locale
2828
setlocale(\LC_ALL, 'C');
2929

30-
if (!class_exists('Doctrine\Common\Annotations\AnnotationRegistry', false) && class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
31-
if (method_exists('Doctrine\Common\Annotations\AnnotationRegistry', 'registerUniqueLoader')) {
30+
if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {
31+
if (method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
3232
AnnotationRegistry::registerUniqueLoader('class_exists');
3333
} else {
3434
AnnotationRegistry::registerLoader('class_exists');

0 commit comments

Comments
 (0)