8000 minor #15317 [2.6] Static Code Analysis for Components (kalessil) · symfony/symfony@08f696c · GitHub
[go: up one dir, main page]

Skip to content

Commit 08f696c

Browse files
committed
minor #15317 [2.6] Static Code Analysis for Components (kalessil)
This PR was squashed before being merged into the 2.6 branch (closes #15317). Discussion ---------- [2.6] Static Code Analysis for Components | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Static Code Analysis with Php Inspections (EA Extended): - fixed couple potential issues when code is running in a phar-file Commits ------- 37a2353 [2.6] Static Code Analysis for Components
2 parents 713a8b0 + 37a2353 commit 08f696c

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