@@ -602,7 +602,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
602602 $ registryDefinition = $ container ->getDefinition ('workflow.registry ' );
603603
604604 foreach ($ config ['workflows ' ] as $ name => $ workflow ) {
605- if (!array_key_exists ('type ' , $ workflow )) {
605+ if (!\ array_key_exists ('type ' , $ workflow )) {
606606 $ workflow ['type ' ] = 'workflow ' ;
607607 @trigger_error (sprintf ('The "type" option of the "framework.workflows.%s" configuration entry must be defined since Symfony 3.3. The default value will be "state_machine" in Symfony 4.0. ' , $ name ), E_USER_DEPRECATED );
608608 }
@@ -1052,7 +1052,7 @@ private function registerAssetsConfiguration(array $config, ContainerBuilder $co
10521052 foreach ($ config ['packages ' ] as $ name => $ package ) {
10531053 if (null !== $ package ['version_strategy ' ]) {
10541054 $ version = new Reference ($ package ['version_strategy ' ]);
1055- } elseif (!array_key_exists ('version ' , $ package ) && null === $ package ['json_manifest_path ' ]) {
1055+ } elseif (!\ array_key_exists ('version ' , $ package ) && null === $ package ['json_manifest_path ' ]) {
10561056 // if neither version nor json_manifest_path are specified, use the default
10571057 $ version = $ defaultVersion ;
10581058 } else {
@@ -1273,15 +1273,15 @@ private function registerValidationConfiguration(array $config, ContainerBuilder
12731273 $ definition = $ container ->findDefinition ('validator.email ' );
12741274 $ definition ->replaceArgument (0 , $ config ['strict_email ' ]);
12751275
1276- if (array_key_exists ('enable_annotations ' , $ config ) && $ config ['enable_annotations ' ]) {
1276+ if (\ array_key_exists ('enable_annotations ' , $ config ) && $ config ['enable_annotations ' ]) {
12771277 if (!$ this ->annotationsConfigEnabled ) {
12781278 throw new \LogicException ('"enable_annotations" on the validator cannot be set as Annotations support is disabled. ' );
12791279 }
12801280
12811281 $ validatorBuilder ->addMethodCall ('enableAnnotationMapping ' , [new Reference ('annotation_reader ' )]);
12821282 }
12831283
1284- if (array_key_exists ('static_method ' , $ config ) && $ config ['static_method ' ]) {
1284+ if (\ array_key_exists ('static_method ' , $ config ) && $ config ['static_method ' ]) {
12851285 foreach ($ config ['static_method ' ] as $ methodName ) {
12861286 $ validatorBuilder ->addMethodCall ('addMethodMapping ' , [$ methodName ]);
12871287 }
0 commit comments