Skip to content

Commit c8dc34c

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: Added 'default' color [HttpFoundation] Reload the session after regenerating its id [HttpFoundation] Add a test case to confirm a bug in session migration [2.6] Static Code Analysis for Components and Bundles [Finder] Command::addAtIndex() fails with Command instance argument [DependencyInjection] Freeze also FrozenParameterBag::remove [Twig][Bridge] replaced `extends` with `use` in bootstrap_3_horizontal_layout.html.twig fix CS fixed CS Add a way to reset the singleton [Security] allow to use `method` in XML configs Remove duplicate example Remove var not used due to returning early (introduced in 8982c32) Enhance hhvm test skip message
2 parents 1f45a2f + d842912 commit c8dc34c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/JsonFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author singles
2222
*/
23-
class JsonFileLoader extends ArrayLoader implements LoaderInterface
23+
class JsonFileLoader extends ArrayLoader
2424
{
2525
/**
2626
* {@inheritdoc}

Tests/TranslatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function testTransChoiceFallbackWithNoTranslation()
502502
public function testGetMessages($resources, $locale, $expected)
503503
{
504504
$locales = array_keys($resources);
505-
$_locale = !is_null($locale) ? $locale : reset($locales);
505+
$_locale = null !== $locale ? $locale : reset($locales);
506506
$locales = array_slice($locales, 0, array_search($_locale, $locales));
507507

508508
$translator = new Translator($_locale, new MessageSelector());

0 commit comments

Comments
 (0)