Commit 84bcb9b9 authored by Haralan Dobrev's avatar Haralan Dobrev

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.
parent dab32597
......@@ -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