-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Exception handler fatalerrorexception issues
- Loading branch information
1 parent
376780a
commit 6a29a0b
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace Directus\Exception; | ||
|
||
/** | ||
* Fatal Error Exception. | ||
* | ||
* @author Konstanton Myakshin <koc-dp@yandex.ru> | ||
*/ | ||
class FatalErrorException extends \ErrorException | ||
{ | ||
|
||
protected function setTrace($trace) | ||
{ | ||
$traceReflector = new \ReflectionProperty('Exception', 'trace'); | ||
$traceReflector->setAccessible(true); | ||
$traceReflector->setValue($this, $trace); | ||
} | ||
} |