Skip to content

Commit 7847565

Browse files
committed
[DependencyInjection] Fix doc blocks
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 7c9326d commit 7847565

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Exception/ParameterNotFoundException.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ class ParameterNotFoundException extends InvalidArgumentException implements Not
2727
private $nonNestedAlternative;
2828

2929
/**
30-
* @param string $key The requested parameter key
31-
* @param string $sourceId The service id that references the non-existent parameter
32-
* @param string $sourceKey The parameter key that references the non-existent parameter
33-
* @param \Throwable $previous The previous exception
34-
* @param string[] $alternatives Some parameter name alternatives
35-
* @param string|null $nonNestedAlternative The alternative parameter name when the user expected dot notation for nested parameters
30+
* @param string $key The requested parameter key
31+
* @param string|null $sourceId The service id that references the non-existent parameter
32+
* @param string|null $sourceKey The parameter key that references the non-existent parameter
33+
* @param \Throwable|null $previous The previous exception
34+
* @param string[] $alternatives Some parameter name alternatives
35+
* @param string|null $nonNestedAlternative The alternative parameter name when the user expected dot notation for nested parameters
3636
*/
3737
public function __construct(string $key, string $sourceId = null, string $sourceKey = null, \Throwable $previous = null, array $alternatives = [], string $nonNestedAlternative = null)
3838
{

TypedReference.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class TypedReference extends Reference
2323
private $requiringClass;
2424

2525
/**
26-
* @param string $id The service identifier
27-
* @param string $type The PHP type of the identified service
28-
* @param int $invalidBehavior The behavior when the service does not exist
29-
* @param string $name The name of the argument targeting the service
26+
* @param string $id The service identifier
27+
* @param string $type The PHP type of the identified service
28+
* @param int $invalidBehavior The behavior when the service does not exist
29+
* @param string|null $name The name of the argument targeting the service
3030
*/
3131
public function __construct(string $id, string $type, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $name = null)
3232
{

0 commit comments

Comments
 (0)