Skip to content

Commit 5295a37

Browse files
authored
Merge pull request #1797 from deguif/class-constant
Use ::class constant
2 parents 3646880 + 67d151a commit 5295a37

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
@@ -68,6 +68,6 @@ protected static function createKernel(array $options = [])
6868

6969
protected static function getVarDir()
7070
{
71-
return \substr(\strrchr(\get_called_class(), '\\'), 1);
71+
return \substr(\strrchr(static::class, '\\'), 1);
7272
}
7373
}

0 commit comments

Comments
 (0)