We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 586db71 commit 5849a16Copy full SHA for 5849a16
1 file changed
src/Factory/RepositoryFactory.php
@@ -35,7 +35,7 @@ final public function createAuthCodeRepository() : AuthCodeRepositoryInterface
35
{
36
static $clientEntity;
37
38
- if ($this->repositories[Repository::AUTH_CODE] === null) {
+ if (array_key_exists(Repository::AUTH_CODE, $this->repositories) === false) {
39
$clientEntity = $this->createClientRepository()->createClientEntity();
40
}
41
@@ -61,7 +61,7 @@ final public function createScopeRepository() : ScopeRepositoryInterface
61
62
private function createOnce(string $className, array $properties = []): RepositoryInterface
63
64
- if ($this->repositories[$className] === null) {
+ if (array_key_exists($className, $this->repositories) === false) {
65
$this->repositories[$className] = $this->create($className, $properties);
66
67
0 commit comments