8000 [2.6] Static Code Analysis for Components · symfony/symfony@37a2353 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37a2353

Browse files
kalessilfabpot
authored andcommitted
[2.6] Static Code Analysis for Components
1 parent dcb0255 commit 37a2353

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Component/HttpKernel/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function getScript($request)
101101

102102
$r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\ClassLoader');
103103
$requirePath = str_replace("'", "\\'", $r->getFileName());
104-
$symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
104+
$symfonyPath = str_replace("'", "\\'", dirname(dirname(dirname(__DIR__))));
105105
$errorReporting = error_reporting();
106106

107107
$code = <<<EOF

src/Symfony/Component/Intl/Resources/bin/update-data.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@
178178
$compiler = new GenrbCompiler($genrb, $genrbEnv);
179179
$config = new GeneratorConfig($sourceDir.'/data', $icuVersionInDownload);
180180

181-
// Don't wrap "/data" in realpath(), in case the directory does not exist
182-
$baseDir = realpath(__DIR__.'/..').'/data';
181+
$baseDir = dirname(__DIR__).'/data';
183182

184183
//$txtDir = $baseDir.'/txt';
185184
$jsonDir = $baseDir;

0 commit comments

Comments
 (0)
0