File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 21
21
#[\Attribute(\Attribute::TARGET_PARAMETER )]
22
22
final class Target
23
23
{
24
- /**
25
- * @var string
26
- */
27
- public $ name ;
24
+ public string $ name ;
28
25
29
26
public function __construct (string $ name )
30
27
{
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ class Definition
52
52
*
53
53
* Used to store the name of the inner id when using service decoration together with autowiring
54
54
*/
55
- public $ innerServiceId ;
55
+ public ? string $ innerServiceId = null ;
56
56
57
57
/**
58
58
* @internal
59
59
*
60
60
* Used to store the behavior to follow when using service decoration and the decorated service is invalid
61
61
*/
62
- public $ decorationOnInvalid ;
62
+ public ? int $ decorationOnInvalid = null ;
63
63
64
64
public function __construct (string $ class = null , array $ arguments = [])
65
65
{
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \DependencyInjection \Loader \Configurator ;
13
13
14
14
use Symfony \Component \Config \Loader \ParamConfigurator ;
15
+ use Symfony \Component \DependencyInjection \Alias ;
15
16
use Symfony \Component \DependencyInjection \Argument \AbstractArgument ;
16
17
use Symfony \Component \DependencyInjection \Argument \ArgumentInterface ;
17
18
use Symfony \Component \DependencyInjection \Argument \ServiceClosureArgument ;
@@ -31,7 +32,7 @@ abstract class AbstractConfigurator
31
32
public static $ valuePreProcessor ;
32
33
33
34
/** @internal */
34
- protected $ definition ;
35
+ protected Definition | Alias | null $ definition = null ;
35
36
36
37
public function __call (string $ method , array $ args )
37
38
{
Original file line number Diff line number Diff line change 19
19
class ReferenceConfigurator extends AbstractConfigurator
20
20
{
21
21
/** @internal */
22
- protected $ id ;
22
+ protected string $ id ;
23
23
24
24
/** @internal */
25
- protected $ invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ;
25
+ protected int $ invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ;
26
26
27
27
public function __construct (string $ id )
28
28
{
Original file line number Diff line number Diff line change @@ -36,14 +36,6 @@ public function isCompiled(): bool
36
36
return true ;
37
37
}
38
38
39
- public function getRemovedIds (): array
40
- {
41
- return [
42
- 'Psr \\Container \\ContainerInterface ' => true ,
43
- 'Symfony \\Component \\DependencyInjection \\ContainerInterface ' => true ,
44
- ];
45
- }
46
-
47
39
/**
48
40
* Gets the public 'foo' shared autowired service.
49
41
*
You can’t perform that action at this time.
0 commit comments