File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33</a >
44
55<p align =" center " >
6- <a href="https://packagist.org/packages/type-lang/phpdoc"><img src="https://poser.pugx.org/type-lang/phpdoc/require/php?style=for-the-badge" alt="PHP 8.4 +"></a>
6+ <a href="https://packagist.org/packages/type-lang/phpdoc"><img src="https://poser.pugx.org/type-lang/phpdoc/require/php?style=for-the-badge" alt="PHP 8.1 +"></a>
77 <a href="https://packagist.org/packages/type-lang/phpdoc"><img src="https://poser.pugx.org/type-lang/phpdoc/version?style=for-the-badge" alt="Latest Stable Version"></a>
88 <a href="https://packagist.org/packages/type-lang/phpdoc"><img src="https://poser.pugx.org/type-lang/phpdoc/v/unstable?style=for-the-badge" alt="Latest Unstable Version"></a>
99 <a href="https://raw.githubusercontent.com/php-type-language/phpdoc/blob/master/LICENSE"><img src="https://poser.pugx.org/type-lang/phpdoc/license?style=for-the-badge" alt="License MIT"></a>
@@ -38,7 +38,7 @@ comment's description and tags:
3838``` php
3939use TypeLang\PhpDoc\DocBlockParser;
4040
41- $parser = new DocBlockParser();
41+ $parser = DocBlockParser::createDefault ();
4242
4343$block = $parser->parse(<<<'PHPDOC'
4444 /**
@@ -52,7 +52,7 @@ $block = $parser->parse(<<<'PHPDOC'
5252
5353// The leading description (everything before the first tag)
5454echo $block->description;
55- // "Sends a notification to the given recipient."
55+ // "Sends a notification to the given recipient.\n "
5656
5757// Tags form an ordered, countable, iterable collection
5858echo \count($block); // 3
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ final class TaggedDescription implements
2222{
2323 /**
2424 * Gets a list of {@see ComponentInterface} components that make up the
25- * {@see TaggedDescriptionInterface } in the order in which these
25+ * {@see TaggedDescription } in the order in which these
2626 * elements are defined.
2727 *
2828 * @var list<ComponentInterface>
Original file line number Diff line number Diff line change 1111 * Represents a parsed DocBlock comment.
1212 *
1313 * A structured view over the two logical parts of any documentation block:
14- * An instance of description and an ordered set of ta
14+ * the description and an ordered list of tags.
1515 *
1616 * The object is a read-only, IMMUTABLE value. It is a snapshot of a comment
1717 * and never mutates. It additionally behaves as a collection of its tags, so
@@ -137,7 +137,7 @@ public function getIterator(): \Traversable
137137 * Returns the number of tags contained in the comment.
138138 *
139139 * The value is always non-negative and equals the number of entries
140- * exposed by {@see DocBlockInterface ::$tags}.
140+ * exposed by {@see DocBlock ::$tags}.
141141 *
142142 * ```
143143 * $count = \count($block); // e.g. 4
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ interface SplitterInterface
1717 * the returned section, relative to the beginning.
1818 *
1919 * ```
20- * $result = $parser->parse (<<<'DOC'
20+ * $result = $splitter->split (<<<'DOC'
2121 * /**
2222 * * Example line 1
2323 * *
Original file line number Diff line number Diff line change 88use TypeLang \PhpDoc \Parser \Grammar \CombinatorInterface ;
99
1010/**
11- * A platform contributes a named set of tags, aliases and combinators to the
11+ * A platform contributes a set of tags, aliases and combinators to the
1212 * parser.
1313 *
1414 * A platform is self-contained: its aliases point to its own tags, and its tags
You can’t perform that action at this time.
0 commit comments