Commit 6a9ce907 authored by Fabien Potencier's avatar Fabien Potencier

minor #1638 Simplify extend call (hkdobrev)

This PR was merged into the 2.3.x-dev branch.

Discussion
----------

Simplify extend call

Since Pimple 2.x there is no need to re-assign the result from `extend()` call to the same key. Pimple already does that.

Commits
-------

84bcb9b9 Simplify extend call
parents dab32597 84bcb9b9
......@@ -155,7 +155,7 @@ class ValidatorServiceProviderTest extends TestCase
$app->register(new ValidatorServiceProvider());
$app->register(new TranslationServiceProvider());
$app['translator'] = $app->extend('translator', function ($translator, $app) {
$app->extend('translator', function ($translator, $app) {
$translator->addResource('array', ['This value should not be blank.' => 'Pas vide'], 'fr', 'validators');
return $translator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment