8000 try to read SYMFONY_PATCH_TYPE_DECLARATIONS from superglobal arrays too · symfony/symfony@ef7e6b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef7e6b1

Browse files
committed
try to read SYMFONY_PATCH_TYPE_DECLARATIONS from superglobal arrays too
1 parent 2ffc73f commit ef7e6b1

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