Skip to content

Commit ddc7782

Browse files
Merge branch '4.1'
* 4.1: Enable native_constant_invocation CS fixer
2 parents d2b08c7 + 6fcd1bd commit ddc7782

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/TranslatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ public function testFallbackCatalogueResources()
297297

298298
$resources = $translator->getCatalogue('en')->getResources();
299299
$this->assertCount(1, $resources);
300-
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'resources.yml', $resources);
300+
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
301301

302302
$resources = $translator->getCatalogue('en_GB')->getResources();
303303
$this->assertCount(2, $resources);
304-
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'empty.yml', $resources);
305-
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'resources.yml', $resources);
304+
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'empty.yml', $resources);
305+
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
306306
}
307307

308308
/**

Util/XliffUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private static function fixXmlLocation(string $schemaSource, string $xmlUri): st
132132
}
133133
}
134134

135-
$drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
135+
$drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
136136
$newPath = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts));
137137

138138
return str_replace($xmlUri, $newPath, $schemaSource);

0 commit comments

Comments
 (0)