File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1515use TypeLang \PHPDoc \Parser \SourceMap ;
1616use TypeLang \PHPDoc \Parser \Tag \TagParser ;
1717use TypeLang \PHPDoc \Parser \Tag \TagParserInterface ;
18- use TypeLang \PHPDoc \Tag \Factory ;
18+ use TypeLang \PHPDoc \Tag \TagFactory ;
1919use TypeLang \PHPDoc \Tag \FactoryInterface ;
2020
2121/**
@@ -30,7 +30,7 @@ class Parser implements ParserInterface
3030 private readonly TagParserInterface $ tags ;
3131
3232 public function __construct (
33- FactoryInterface $ tags = new Factory (),
33+ FactoryInterface $ tags = new TagFactory (),
3434 ) {
3535 $ this ->tags = new TagParser ($ tags );
3636 $ this ->descriptions = new SprintfDescriptionReader ($ this ->tags );
Original file line number Diff line number Diff line change 66
77use TypeLang \PHPDoc \Parser \Description \DescriptionParserInterface ;
88
9- final class PrefixedFactory implements MutableFactoryInterface
9+ final class PrefixedTagFactory implements MutableFactoryInterface
1010{
1111 /**
1212 * @param non-empty-list<non-empty-string> $prefixes
1313 */
1414 public function __construct (
1515 private readonly MutableFactoryInterface $ delegate ,
16- private readonly array $ prefixes = [] ,
16+ private readonly array $ prefixes ,
1717 ) {}
1818
1919 public function register (array |string $ tags , FactoryInterface $ delegate ): void
Original file line number Diff line number Diff line change 99use TypeLang \PHPDoc \Exception \RuntimeExceptionInterface ;
1010use TypeLang \PHPDoc \Parser \Description \DescriptionParserInterface ;
1111
12- final class Factory implements MutableFactoryInterface
12+ final class TagFactory implements MutableFactoryInterface
1313{
1414 /**
1515 * @param array<non-empty-string, FactoryInterface> $factories
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function getTags(): array
4242 }
4343
4444 /**
45- * @return \Traversable<array-key , Tag>
45+ * @return \Traversable<int<0, max> , Tag>
4646 */
4747 public function getIterator (): \Traversable
4848 {
You can’t perform that action at this time.
0 commit comments