Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Make classes keys - optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
fmasa committed Apr 2, 2017
1 parent 31821b7 commit c950ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DoctrineYamlAnnotations/YamlReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function getDrivers(): array

private function loadClass(string $class)
{
if (in_array($class, $this->classes)) {
if (isset($this->classes[$class])) {
return;
}

Expand All @@ -141,6 +141,6 @@ private function loadClass(string $class)
}
}

$this->classes[] = $class;
$this->classes[$class] = TRUE;
}
}

0 comments on commit c950ec3

Please sign in to comment.