File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ public function testNormalizersAndEncodersUseDefaultContextConfigOption()
44
44
$ kernel = static ::bootKernel (['test_case ' => 'Serializer ' , 'root_config ' => 'default_context.yaml ' ]);
45
45
46
46
foreach ($ kernel ->normalizersAndEncoders as $ normalizerOrEncoderId ) {
47
+ if (!static ::getContainer ()->has ($ normalizerOrEncoderId )) {
48
+ continue ;
49
+ }
50
+
47
51
$ normalizerOrEncoder = static ::getContainer ()->get ($ normalizerOrEncoderId );
48
52
49
53
$ reflectionObject = new \ReflectionObject ($ normalizerOrEncoder );
@@ -68,7 +72,7 @@ class SerializerKernel extends AppKernel implements CompilerPassInterface
68
72
'serializer.normalizer.property.alias ' , // Special case as this normalizer isn't tagged
69
73
];
70
74
71
- public function process (ContainerBuilder $ container )
75
+ public function process (ContainerBuilder $ container ): void
72
76
{
73
77
$ services = array_merge (
74
78
$ container ->findTaggedServiceIds ('serializer.normalizer ' ),
You can’t perform that action at this time.
0 commit comments