@@ -29,7 +29,7 @@ class TypedReference extends Reference
29
29
public function __construct (string $ id , string $ type , $ invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE )
30
30
{
31
31
if (\is_string ($ invalidBehavior ) || 3 < \func_num_args ()) {
32
- @trigger_error (sprintf ('The $requiringClass argument of "%s" is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
32
+ @trigger_error (sprintf ('The $requiringClass argument of "%s() " is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
33
33
34
34
$ this ->requiringClass = $ invalidBehavior ;
35
35
$ invalidBehavior = 3 < \func_num_args () ? \func_get_arg (3 ) : ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ;
@@ -48,7 +48,7 @@ public function getType()
48
48
*/
49
49
public function getRequiringClass ()
50
50
{
51
- @trigger_error (sprintf ('The "%s" method is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
51
+ @trigger_error (sprintf ('The "%s() " method is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
52
52
53
53
return $ this ->requiringClass ?? '' ;
54
54
}
@@ -58,7 +58,7 @@ public function getRequiringClass()
58
58
*/
59
59
public function canBeAutoregistered ()
60
60
{
61
- @trigger_error (sprintf ('The "%s" method is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
61
+ @trigger_error (sprintf ('The "%s() " method is deprecated since Symfony 4.1. ' , __METHOD__ ), E_USER_DEPRECATED );
62
62
63
63
return $ this ->requiringClass && (false !== $ i = strpos ($ this ->type , '\\' )) && 0 === strncasecmp ($ this ->type , $ this ->requiringClass , 1 + $ i );
64
64
}
0 commit comments