@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Filters the given Descriptor and returns the altered object. |
49 | 49 | * |
50 | - * @param TDescriptor $descriptor |
|
50 | + * @param Filterable $descriptor |
|
51 | 51 | * |
52 | 52 | * @return TDescriptor|null |
53 | 53 | * |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | final class CommonMarkFactory |
12 | 12 | { |
13 | - /** @param iterable<ExtensionInterface> $extensions */ |
|
13 | + /** @param \League\CommonMark\Extension\DisallowedRawHtml\DisallowedRawHtmlExtension[] $extensions */ |
|
14 | 14 | public function createConverter(iterable $extensions) : CommonMarkConverter |
15 | 15 | { |
16 | 16 | $environment = Environment::createCommonMarkEnvironment(); |
@@ -27,6 +27,10 @@ |
||
27 | 27 | /** @var Environment|null */ |
28 | 28 | private $environment; |
29 | 29 | |
30 | + /** |
|
31 | + * @param NodeRendererFactory $nodeRendererFactory |
|
32 | + * @param Environment $environment |
|
33 | + */ |
|
30 | 34 | public function __construct( |
31 | 35 | string $type, |
32 | 36 | string $className, |
@@ -126,9 +126,9 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Analyzes a Descriptor and alters its state based on its state or even removes the descriptor. |
128 | 128 | * |
129 | - * @param TDescriptor $descriptor |
|
129 | + * @param Filterable $descriptor |
|
130 | 130 | * |
131 | - * @return TDescriptor|null |
|
131 | + * @return Filter\TDescriptor|null |
|
132 | 132 | * |
133 | 133 | * @template TDescriptor as Filterable |
134 | 134 | */ |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * Filters a descriptor, validates it, stores the validation results and returns the transmuted object or null |
142 | 142 | * if it is supposed to be removed. |
143 | 143 | * |
144 | - * @param TDescriptor $descriptor |
|
144 | + * @param Descriptor $descriptor |
|
145 | 145 | * |
146 | 146 | * @return TDescriptor|null |
147 | 147 | * |
@@ -67,6 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * @param mixed[][] $titles |
69 | 69 | * @param mixed[][] $tocItems |
70 | + * @param string $url |
|
70 | 71 | */ |
71 | 72 | private function buildLevel( |
72 | 73 | ?string $url, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | final class DescriptionAssemblerReducer extends AssemblerAbstract implements AssemblerReducer |
20 | 20 | { |
21 | 21 | /** |
22 | - * @return DescriptorAbstract|TagDescriptor|null |
|
22 | + * @return null|\phpDocumentor\Descriptor\Builder\T |
|
23 | 23 | */ |
24 | 24 | public function create(object $data, ?Descriptor $descriptor = null) : ?Descriptor |
25 | 25 | { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * @param string|int $index |
97 | 97 | * @param ?TChild $valueIfEmpty If the index does not exist it will be created with this value and returned. |
98 | 98 | * |
99 | - * @return TChild The contents of the element with the given index and the provided default if the key |
|
99 | + * @return T|null The contents of the element with the given index and the provided default if the key |
|
100 | 100 | * doesn't exist. |
101 | 101 | * |
102 | 102 | * @psalm-return ($valueIfEmpty is null ? ?TChild: TChild) |