@@ -70,7 +70,7 @@ protected function describeContainerTags(ContainerBuilder $container, array $opt
70
70
$ this ->writeData ($ data , $ options );
71
71
}
72
72
73
- protected function describeContainerService (object $ service , array $ options = [], ContainerBuilder $ container = null ): void
73
+ protected function describeContainerService (object $ service , array $ options = [], ? ContainerBuilder $ container = null ): void
74
74
{
75
75
if (!isset ($ options ['id ' ])) {
76
76
throw new \InvalidArgumentException ('An "id" option must be provided. ' );
@@ -121,12 +121,12 @@ protected function describeContainerServices(ContainerBuilder $container, array
121
121
$ this ->writeData ($ data , $ options );
122
122
}
123
123
124
- protected function describeContainerDefinition (Definition $ definition , array $ options = [], ContainerBuilder $ container = null ): void
124
+ protected function describeContainerDefinition (Definition $ definition , array $ options = [], ? ContainerBuilder $ container = null ): void
125
125
{
126
126
$ this ->writeData ($ this ->getContainerDefinitionData ($ definition , isset ($ options ['omit_tags ' ]) && $ options ['omit_tags ' ], isset ($ options ['show_arguments ' ]) && $ options ['show_arguments ' ], $ container , $ options ['id ' ] ?? null ), $ options );
127
127
}
128
128
129
- protected function describeContainerAlias (Alias $ alias , array $ options = [], ContainerBuilder $ container = null ): void
129
+ protected function describeContainerAlias (Alias $ alias , array $ options = [], ? ContainerBuilder $ container = null ): void
130
130
{
131
131
if (!$ container ) {
132
132
$ this ->writeData ($ this ->getContainerAliasData ($ alias ), $ options );
@@ -245,7 +245,7 @@ protected function sortParameters(ParameterBag $parameters): array
245
245
return $ sortedParameters ;
246
246
}
247
247
248
- private function getContainerDefinitionData (Definition $ definition , bool $ omitTags = false , bool $ showArguments = false , ContainerBuilder $ container = null , string $ id = null ): array
248
+ private function getContainerDefinitionData (Definition $ definition , bool $ omitTags = false , bool $ showArguments = false , ? ContainerBuilder $ container = null , ? string $ id = null ): array
249
249
{
250
250
$ data = [
251
251
'class ' => (string ) $ definition ->getClass (),
@@ -418,7 +418,7 @@ private function getCallableData(mixed $callable): array
418
418
throw new \InvalidArgumentException ('Callable is not describable. ' );
419
419
}
420
420
421
- private function describeValue ($ value , bool $ omitTags , bool $ showArguments , ContainerBuilder $ container = null , string $ id = null ): mixed
421
+ private function describeValue ($ value , bool $ omitTags , bool $ showArguments , ? ContainerBuilder $ container = null , ? string $ id = null ): mixed
422
422
{
423
423
if (\is_array ($ value )) {
424
424
$ data = [];
0 commit comments