Skip to content

Commit 0e8cada

Browse files
Merge branch '5.2' into 5.3
* 5.2: [HttpClient] throw exception when AsyncDecoratorTrait gets an already consumed response [Validator] Fix tests by making constraint options dumps order consistent
2 parents 111e71a + 7a2ee0c commit 0e8cada

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Command/DebugCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ private function getConstraintOptions(Constraint $constraint): array
166166
$options[$propertyName] = $constraint->$propertyName;
167167
}
168168

169+
ksort($options);
170+
169171
return $options;
170172
}
171173

Tests/Command/DebugCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function testOutputWithClassArgument()
7272
| Property | Name | Groups | Options |
7373
+---------------+--------------------------------------------------+---------+------------------------------------------------------------+
7474
| firstArgument | Symfony\Component\Validator\Constraints\NotBlank | Default | [ |
75-
| | | | "message" => "This value should not be blank.", |
7675
| | | | "allowNull" => false, |
76+
| | | | "message" => "This value should not be blank.", |
7777
| | | | "normalizer" => null, |
7878
| | | | "payload" => null |
7979
| | | | ] |
@@ -133,8 +133,8 @@ public function testOutputWithPathArgument()
133133
| Property | Name | Groups | Options |
134134
+---------------+--------------------------------------------------+---------+------------------------------------------------------------+
135135
| firstArgument | Symfony\Component\Validator\Constraints\NotBlank | Default | [ |
136-
| | | | "message" => "This value should not be blank.", |
137136
| | | | "allowNull" => false, |
137+
| | | | "message" => "This value should not be blank.", |
138138
| | | | "normalizer" => null, |
139139
| | | | "payload" => null |
140140
| | | | ] |
@@ -153,8 +153,8 @@ public function testOutputWithPathArgument()
153153
| Property | Name | Groups | Options |
154154
+---------------+--------------------------------------------------+---------+------------------------------------------------------------+
155155
| firstArgument | Symfony\Component\Validator\Constraints\NotBlank | Default | [ |
156-
| | | | "message" => "This value should not be blank.", |
157156
| | | | "allowNull" => false, |
157+
| | | | "message" => "This value should not be blank.", |
158158
| | | | "normalizer" => null, |
159159
| | | | "payload" => null |
160160
| | | | ] |

0 commit comments

Comments
 (0)