Skip to content

Commit 748dd8e

Browse files
committed
bug #32873 [ErrorRenderer] Add alias to FlattenException to avoid BC break (yceruto)
This PR was merged into the 4.4 branch. Discussion ---------- [ErrorRenderer] Add alias to FlattenException to avoid BC break | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32473 | License | MIT | Doc PR | - Commits ------- 44b0e7d Created alias to FlattenException to avoid BC break
2 parents 64a2627 + 44b0e7d commit 748dd8e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Symfony/Component/ErrorRenderer/Exception/FlattenException.php

+15
Original file line numberDiff line numberDiff line change
@@ -374,3 +374,18 @@ public function getAsString()
374374
return rtrim($message);
375375
}
376376
}
377+
378+
namespace Symfony\Component\Debug\Exception;
379+
380+
if (!class_exists(FlattenException::class, false)) {
381+
class_alias(\Symfony\Component\ErrorRenderer\Exception\FlattenException::class, FlattenException::class);
382+
}
383+
384+
if (false) {
385+
/**
386+
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception\FlattenException instead.
387+
*/
388+
class FlattenException extends \Symfony\Component\ErrorRenderer\Exception\FlattenException
389+
{
390+
}
391+
}

0 commit comments

Comments
 (0)