Skip to content

Commit 67d151a

Browse files
committed
Use ::class constant
1 parent 7f3d131 commit 67d151a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Manager/RepositoryManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function getRepositoryName(string $indexName): string
7373
return $this->indexes[$indexName]['repositoryName'];
7474
}
7575

76-
return 'FOS\ElasticaBundle\Repository';
76+
return Repository::class;
7777
}
7878

7979
/**

tests/Functional/WebTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ protected static function createKernel(array $options = [])
6565

6666
protected static function getVarDir()
6767
{
68-
return \substr(\strrchr(\get_called_class(), '\\'), 1);
68+
return \substr(\strrchr(static::class, '\\'), 1);
6969
}
7070
}

0 commit comments

Comments
 (0)