Skip to content

Commit 224b496

Browse files
Merge branch '4.2'
* 4.2: (26 commits) Apply php-cs-fixer rule for array_key_exists() [Cache] fix warming up cache.system and apcu [Security] Change FormAuthenticator if condition handles multi-byte characters in autocomplete speed up tests running them without debug flag [Translations] added missing Croatian validators Fix getItems() performance issue with RedisCluster (php-redis) [VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning IntegerType: reject submitted non-integer numbers be keen to newcomers [HttpKernel] Fix possible infinite loop of exceptions fixed CS [Validator] Added missing translations for Afrikaans do not validate non-submitted form fields in PATCH requests Update usage example in ArrayInput doc block. [Console] Prevent ArgvInput::getFirstArgument() from returning an option value [Validator] Fixed duplicate UUID fixed CS [EventDispatcher] Fix unknown priority Avoid mutating the Finder when building the iterator ...
2 parents 29ba17b + 0b7030a commit 224b496

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

DependencyInjection/ValidateWorkflowsPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public function process(ContainerBuilder $container)
3434
$taggedServices = $container->findTaggedServiceIds($this->definitionTag, true);
3535
foreach ($taggedServices as $id => $tags) {
3636
foreach ($tags as $tag) {
37-
if (!array_key_exists('name', $tag)) {
37+
if (!\array_key_exists('name', $tag)) {
3838
throw new RuntimeException(sprintf('The "name" for the tag "%s" of service "%s" must be set.', $this->definitionTag, $id));
3939
}
40-
if (!array_key_exists('type', $tag)) {
40+
if (!\array_key_exists('type', $tag)) {
4141
throw new RuntimeException(sprintf('The "type" for the tag "%s" of service "%s" must be set.', $this->definitionTag, $id));
4242
}
43-
if (!array_key_exists('marking_store', $tag)) {
43+
if (!\array_key_exists('marking_store', $tag)) {
4444
throw new RuntimeException(sprintf('The "marking_store" for the tag "%s" of service "%s" must be set.', $this->definitionTag, $id));
4545
}
4646

Tests/Validator/StateMachineValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testValid()
9494

9595
(new StateMachineValidator())->validate($definition, 'foo');
9696

97-
// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
97+
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions)
9898
$this->addToAssertionCount(1);
9999

100100
// The graph looks like:

Tests/Validator/WorkflowValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testSinglePlaceWorkflowValidatorAndSimpleWorkflow()
2929

3030
(new WorkflowValidator(true))->validate($definition, 'foo');
3131

32-
// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
32+
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions)
3333
$this->addToAssertionCount(1);
3434
}
3535

@@ -64,7 +64,7 @@ public function testSameTransitionNameButNotSamePlace()
6464

6565
(new WorkflowValidator())->validate($definition, 'foo');
6666

67-
// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
67+
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions)
6868
$this->addToAssertionCount(1);
6969
}
7070
}

0 commit comments

Comments
 (0)