Skip to content

Commit c18bf19

Browse files
committed
bug #10817 [Debug] fix #10313: FlattenException not found (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [Debug] fix #10313: FlattenException not found | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10313 | License | MIT | Doc PR | none Note that this patch should be ignored while merging into 2.5/master (it will conflict because 2.5/master has a much stronger workaround, not suitable for a minor release IMHO). Commits ------- b147cfa [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
2 parents 585b61d + b147cfa commit c18bf19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ function ($row) {
125125
if (!class_exists('Symfony\Component\Debug\Exception\ContextErrorException')) {
126126
require __DIR__.'/Exception/ContextErrorException.php';
127127
}
128+
if (!class_exists('Symfony\Component\Debug\Exception\FlattenException')) {
129+
require __DIR__.'/Exception/FlattenException.php';
130+
}
128131

129132
if (PHP_VERSION_ID < 50400 && isset($context['GLOBALS']) && is_array($context)) {
130133
unset($context['GLOBALS']);

0 commit comments

Comments
 (0)