Вход Регистрация
Файл: gapps/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php
Строк: 22
<?php

namespace SymfonyComponentDebugTestsFixtures;

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($eE_USER_ERROR);
        }
    }
}
Онлайн: 0
Реклама