8000 Merge branch '4.4' into 5.0 · symfony/symfony@6b18e70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b18e70

Browse files
Merge branch '4.4' into 5.0
* 4.4: cs fix
2 parents a196d05 + f312e3c commit 6b18e70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private static function getVendors()
247247
foreach (get_declared_classes() as $class) {
248248
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
249249
$r = new \ReflectionClass($class);
250-
$v = \dirname($r->getFileName(), 2);
250+
$v = \dirname(\dirname($r->getFileName()));
251251
if (file_exists($v.'/composer/installed.json')) {
252252
self::$vendors[] = $v;
253253
$loader = require $v.'/autoload.php';

src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testTransWithCachingWithInvalidLocale()
109109

110110
public function testLoadResourcesWithoutCaching()
111111
{
112-
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();
112+
$loader = new YamlFileLoader();
113113
$resourceFiles = [
114114
'fr' => [
115115
__DIR__.'/../Fixtures/Resources/translations/messages.fr.yml',
@@ -186,7 +186,7 @@ public function getDebugModeAndCacheDirCombinations()
186186

187187
public function testCatalogResourcesAreAddedForScannedDirectories()
188188
{
189-
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();
189+
$loader = new YamlFileLoader();
190190
$resourceFiles = [
191191
'fr' => [
192192
__DIR__.'/../Fixtures/Resources/translations/messages.fr.yml',
@@ -348,7 +348,7 @@ public function getTranslator($loader, $options = [], $loaderFomat = 'loader', $
348348

349349
public function testWarmup()
350350
{
351-
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();
351+
$loader = new YamlFileLoader();
352352
$resourceFiles = [
353353
'fr' => [
354354
__DIR__.'/../Fixtures/Resources/translations/messages.fr.yml',
@@ -373,7 +373,7 @@ public function testWarmup()
373373

374374
public function testLoadingTranslationFilesWithDotsInMessageDomain()
375375
{
376-
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();
376+
$loader = new YamlFileLoader();
377377
$resourceFiles = [
378378
'en' => [
379379
__DIR__.'/../Fixtures/Resources/translations/domain.with.dots.en.yml',

0 commit comments

Comments
 (0)
0