Skip to content

Commit 2e69253

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Update http_client.rst Test Examples Fix the configuration for custom password strength estimator
2 parents 6c341c3 + 0bf3327 commit 2e69253

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ test it in a real application::
23402340
);
23412341
$this->assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']);
23422342

2343-
$this->assertSame($responseData, $expectedResponseData);
2343+
$this->assertSame($expectedResponseData, $responseData);
23442344
}
23452345
}
23462346

@@ -2373,7 +2373,7 @@ test. Then, save that information as a ``.har`` file somewhere in your applicati
23732373
$responseData = $service->createArticle($requestData);
23742374

23752375
// Assert
2376-
$this->assertSame($responseData, 'the expected response');
2376+
$this->assertSame('the expected response', $responseData);
23772377
}
23782378
}
23792379

reference/constraints/PasswordStrength.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ service to use your own estimator:
178178
class: App\Validator\CustomPasswordStrengthEstimator
179179
180180
Symfony\Component\Validator\Constraints\PasswordStrengthValidator:
181-
arguments: [!service_closure '@custom_password_strength_estimator']
181+
arguments: [!closure '@custom_password_strength_estimator']
182182
183183
.. code-block:: xml
184184
@@ -192,7 +192,7 @@ service to use your own estimator:
192192
<service id="custom_password_strength_estimator" class="App\Validator\CustomPasswordStrengthEstimator"/>
193193
194194
<service id="Symfony\Component\Validator\Constraints\PasswordStrengthValidator">
195-
<argument type="service_closure" id="custom_password_strength_estimator"/>
195+
<argument type="closure" id="custom_password_strength_estimator"/>
196196
</service>
197197
</services>
198198
</container>
@@ -210,5 +210,5 @@ service to use your own estimator:
210210
$services->set('custom_password_strength_estimator', CustomPasswordStrengthEstimator::class);
211211
212212
$services->set(PasswordStrengthValidator::class)
213-
->args([service_closure('custom_password_strength_estimator')]);
213+
->args([closure('custom_password_strength_estimator')]);
214214
};

0 commit comments

Comments
 (0)