diff --git a/src/Generator.php b/src/Generator.php index 56b2794b..a1f00214 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;