From 47d2f007147184ac61d3736d1da82cde346f8cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Ma=C5=A1a?= Date: Tue, 21 Nov 2017 00:15:34 +0100 Subject: [PATCH] Search only in files from YamlDriver instances --- src/DoctrineYamlAnnotations/YamlReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DoctrineYamlAnnotations/YamlReader.php b/src/DoctrineYamlAnnotations/YamlReader.php index 7123748..4af12a8 100644 --- a/src/DoctrineYamlAnnotations/YamlReader.php +++ b/src/DoctrineYamlAnnotations/YamlReader.php @@ -103,7 +103,7 @@ private function getDrivers(): array $chain = $this->configuration->getMetadataDriverImpl(); $drivers = $chain instanceof MappingDriverChain ? $chain->getDrivers() : [$chain]; - $this->drivers = $drivers; + $this->drivers = []; foreach ($drivers as $driver) { if ($driver instanceof YamlDriver) {