From cc21aaffa1a2af34d41580524645ab9df7ed5e45 Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Thu, 18 Apr 2024 10:39:45 +1200 Subject: [PATCH] Change order of annotation factories making `AttributeAnnotationFactory` the first --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 87779101..c47388e6 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -125,7 +125,7 @@ public function setNamespaces(?array $namespaces): Generator public function getAnalyser(): AnalyserInterface { - $this->analyser = $this->analyser ?: new ReflectionAnalyser([new DocBlockAnnotationFactory(), new AttributeAnnotationFactory()]); + $this->analyser = $this->analyser ?: new ReflectionAnalyser([new AttributeAnnotationFactory(), new DocBlockAnnotationFactory()]); $this->analyser->setGenerator($this); return $this->analyser;