@@ -90,7 +90,7 @@ |
||
90 | 90 | * When a FileReflector (or mock thereof) is passed to the 'get' method this mock will return an |
91 | 91 | * empty instance of the FileDescriptor class. |
92 | 92 | * |
93 | - * @return m\MockInterface|AssemblerFactory |
|
93 | + * @return m\LegacyMockInterface |
|
94 | 94 | */ |
95 | 95 | protected function createAssemblerFactoryMock() |
96 | 96 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * Returns the namespace for this element (defaults to global "\") |
115 | 115 | * |
116 | - * @return NamespaceDescriptor|string |
|
116 | + * @return string |
|
117 | 117 | */ |
118 | 118 | public function getNamespace() |
119 | 119 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | } |
379 | 379 | |
380 | 380 | /** |
381 | - * @return DescriptorAbstract|string|Fqsen|null |
|
381 | + * @return DescriptorAbstract|null |
|
382 | 382 | */ |
383 | 383 | public function getInheritedElement() |
384 | 384 | { |
@@ -140,6 +140,7 @@ |
||
140 | 140 | |
141 | 141 | /** |
142 | 142 | * @inheritDoc |
143 | + * @param string $package |
|
143 | 144 | */ |
144 | 145 | public function setPackage($package) : void |
145 | 146 | { |
@@ -72,6 +72,7 @@ |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Creates a sample property reflector for the tests with the given data. |
75 | + * @param DocBlock $docBlockMock |
|
75 | 76 | */ |
76 | 77 | private function givenAPropertyReflector( |
77 | 78 | string $namespace, |
@@ -385,7 +385,7 @@ |
||
385 | 385 | /** |
386 | 386 | * Sets up mocks as such that the fixture has a parent class, with a file. |
387 | 387 | * |
388 | - * @return m\MockInterface|FileDescriptor |
|
388 | + * @return m\LegacyMockInterface |
|
389 | 389 | */ |
390 | 390 | private function whenFixtureIsRelatedToAClassWithFile() |
391 | 391 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @return m\LegacyMockInterface|m\MockInterface|FlySystemFactory |
|
54 | + * @return FlySystemFactory |
|
55 | 55 | */ |
56 | 56 | public function flySystemFactory() |
57 | 57 | { |
@@ -100,6 +100,8 @@ |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Create a ClassReflector mock |
103 | + * @param Fqsen $classFqsen |
|
104 | + * @param Fqsen $parent |
|
103 | 105 | */ |
104 | 106 | protected function getClassReflectorDescriptor(?Fqsen $classFqsen = null, ?Fqsen $parent = null) : Class_ |
105 | 107 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | namespace phpDocumentor\Behat\Contexts\Ast; |
6 | 6 | |
7 | 7 | use Behat\Behat\Context\Context; |
8 | -use Behat\Behat\Tester\Exception\PendingException; |
|
9 | 8 | use Behat\Gherkin\Node\TableNode; |
10 | 9 | use phpDocumentor\Behat\Contexts\Ast\BaseContext; |
11 | 10 | use Webmozart\Assert\Assert; |
@@ -192,6 +192,9 @@ |
||
192 | 192 | return $graph; |
193 | 193 | } |
194 | 194 | |
195 | + /** |
|
196 | + * @param null|GraphVizGraph $graph |
|
197 | + */ |
|
195 | 198 | private function createEmptyNode(string $name, ?GraphVizGraph $graph) : ?Node |
196 | 199 | { |
197 | 200 | if ($graph === null) { |