Skip to content

Commit

Permalink
Simplify extend call
Browse files Browse the repository at this point in the history
Since Pimple 2.x there is no need to re-assign the result from extend()
call to the same key. Pimple already does that.
  • Loading branch information
hkdobrev committed Apr 4, 2018
1 parent dab3259 commit 84bcb9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function testAddResource($registerValidatorFirst)

$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;
Expand Down

0 comments on commit 84bcb9b

Please sign in to comment.