8000 feature #48976 [ErrorHandler] try to read SYMFONY_PATCH_TYPE_DECLARAT… · symfony/symfony@d4c27d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4c27d9

Browse files
committed
feature #48976 [ErrorHandler] try to read SYMFONY_PATCH_TYPE_DECLARATIONS from superglobal arrays too (xabbuh)
This PR was merged into the 6.3 branch. Discussion ---------- [ErrorHandler] try to read SYMFONY_PATCH_TYPE_DECLARATIONS from superglobal arrays too | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #48872 | License | MIT | Doc PR | Commits ------- ef7e6b1 try to read SYMFONY_PATCH_TYPE_DECLARATIONS from superglobal arrays too
2 parents 3d92007 + ef7e6b1 commit d4c27d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function __construct(callable $classLoader)
134134
{
135135
$this->classLoader = $classLoader;
136136
$this->isFinder = \is_array($classLoader) && method_exists($classLoader[0], 'findFile');
137-
parse_str(getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') ?: '', $this->patchTypes);
137+
parse_str($_ENV['SYMFONY_PATCH_TYPE_DECLARATIONS'] ?? $_SERVER['SYMFONY_PATCH_TYPE_DECLARATIONS'] ?? getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') ?: '', $this->patchTypes);
138138
$this->patchTypes += [
139139
'force' => null,
140140
'php' => \PHP_MAJOR_VERSION.'.'.\PHP_MINOR_VERSION,

0 commit comments

Comments
 (0)
0