nginxsonarrradarrplexorganizrdashboardbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotatonzbget
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
541 B
24 lines
541 B
<?php
|
|
|
|
namespace Symfony\Component\Debug\Tests\Fixtures;
|
|
|
|
class ToStringThrower
|
|
{
|
|
private $exception;
|
|
|
|
public function __construct(\Exception $e)
|
|
{
|
|
$this->exception = $e;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
try {
|
|
throw $this->exception;
|
|
} catch (\Exception $e) {
|
|
// Using user_error() here is on purpose so we do not forget
|
|
// that this alias also should work alongside with trigger_error().
|
|
return user_error($e, E_USER_ERROR);
|
|
}
|
|
}
|
|
}
|
|
|