8000 [DI] Clarified deprecation for TypedReference in 4.4 · symfony/symfony@1c70048 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c70048

Browse files
linaorifabpot
authored andcommitted
[DI] Clarified deprecation for TypedReference in 4.4
1 parent 12f1c7c commit 1c70048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/TypedReference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TypedReference extends Reference
3131
public function __construct(string $id, string $type, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $name = null)
3232
{
3333
if (\is_string($invalidBehavior ?? '') || \is_int($name)) {
34-
@trigger_error(sprintf('The $requiringClass argument of "%s()" is deprecated since Symfony 4.1.', __METHOD__), E_USER_DEPRECATED);
34+
@trigger_error(sprintf('Passing the $requiringClass as 3rd argument for "%s()" is deprecated since Symfony 4.1. It should be removed, moving all following arguments 1 to the left.', __METHOD__), E_USER_DEPRECATED);
3535

3636
$this->requiringClass = $invalidBehavior;
3737
$invalidBehavior = 3 < \func_num_args() ? func_get_arg(3) : ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;

0 commit comments

Comments
 (0)
0