@@ -223,7 +223,6 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Returns a service alias definiton. |
225 | 225 | * |
226 | - * @param string $alias |
|
227 | 226 | * @param Alias $id |
228 | 227 | * |
229 | 228 | * @return string |
@@ -352,6 +351,9 @@ discard block |
||
352 | 351 | return sprintf('%%%s%%', $id); |
353 | 352 | } |
354 | 353 | |
354 | + /** |
|
355 | + * @param string $expression |
|
356 | + */ |
|
355 | 357 | protected function getExpressionCall($expression) |
356 | 358 | { |
357 | 359 | return sprintf('@=%s', $expression); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Loads a Yaml file. |
58 | 58 | * |
59 | - * @param mixed $file The resource |
|
59 | + * @param string $file The resource |
|
60 | 60 | */ |
61 | 61 | public function load($file) |
62 | 62 | { |
@@ -7,9 +7,7 @@ |
||
7 | 7 | |
8 | 8 | namespace Drupal\service_container\Tests\KeyValue; |
9 | 9 | |
10 | -use Drupal\Core\DependencyInjection\ContainerBuilder; |
|
11 | 10 | use Drupal\Core\KeyValueStore\KeyValueExpirableFactory; |
12 | -use Drupal\Core\KeyValueStore\KeyValueFactory; |
|
13 | 11 | |
14 | 12 | /** |
15 | 13 | * Tests the key-value database storage. |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** |
267 | 267 | * Sets the default namespaces. |
268 | 268 | * |
269 | - * @param array $namespace |
|
269 | + * @param string $namespace |
|
270 | 270 | * |
271 | 271 | * @return void |
272 | 272 | * |
@@ -1045,7 +1045,7 @@ discard block |
||
1045 | 1045 | * FieldAssignment ::= FieldName "=" PlainValue |
1046 | 1046 | * FieldName ::= identifier |
1047 | 1047 | * |
1048 | - * @return array |
|
1048 | + * @return \stdClass |
|
1049 | 1049 | */ |
1050 | 1050 | private function FieldAssignment() |
1051 | 1051 | { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | * parameter, none) |
130 | 130 | * - 'position' : the position of the token in the input string |
131 | 131 | * |
132 | - * @return array|null the next token; null if there is no more tokens left |
|
132 | + * @return boolean the next token; null if there is no more tokens left |
|
133 | 133 | */ |
134 | 134 | public function moveNext() |
135 | 135 | { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Drupal\Component\Plugin\PluginBase; |
11 | 11 | use Drupal\service_container\Messenger\MessengerInterface; |
12 | 12 | use Drupal\service_container\Tests\ServiceContainerIntegrationTestBase; |
13 | -use Mockery\CountValidator\Exception; |
|
14 | 13 | use Symfony\Component\Yaml\Exception\RuntimeException; |
15 | 14 | |
16 | 15 | class ServiceContainerAnnotationDiscoveryIntegrationTest extends ServiceContainerIntegrationTestBase { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @param string $id A full id or alias for a service definition. |
132 | 132 | * |
133 | - * @return Definition|null The definition related to the supplied id |
|
133 | + * @return Definition The definition related to the supplied id |
|
134 | 134 | */ |
135 | 135 | private function getDefinition($id) |
136 | 136 | { |
@@ -139,6 +139,11 @@ discard block |
||
139 | 139 | return null === $id ? null : $this->container->getDefinition($id); |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $id |
|
144 | + * |
|
145 | + * @return string |
|
146 | + */ |
|
142 | 147 | private function getDefinitionId($id) |
143 | 148 | { |
144 | 149 | while ($this->container->hasAlias($id)) { |
@@ -231,7 +231,7 @@ |
||
231 | 231 | * |
232 | 232 | * @param string $id The service identifier |
233 | 233 | * |
234 | - * @return bool true if the service is defined, false otherwise |
|
234 | + * @return boolean|null true if the service is defined, false otherwise |
|
235 | 235 | * |
236 | 236 | * @api |
237 | 237 | */ |
@@ -1000,7 +1000,7 @@ |
||
1000 | 1000 | * |
1001 | 1001 | * @param mixed $value A value |
1002 | 1002 | * |
1003 | - * @return mixed The same value with all service references replaced by |
|
1003 | + * @return callable|null The same value with all service references replaced by |
|
1004 | 1004 | * the real service instances and all expressions evaluated |
1005 | 1005 | */ |
1006 | 1006 | public function resolveServices($value) |