Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 200
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
/*
3
/*
4
 * This file is part of Psy Shell.
4
 * This file is part of Psy Shell.
5
 *
5
 *
6
 * (c) 2012-2022 Justin Hileman
6
 * (c) 2012-2023 Justin Hileman
7
 *
7
 *
8
 * For the full copyright and license information, please view the LICENSE
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
9
 * file that was distributed with this source code.
Zeile 71... Zeile 71...
71
        parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
71
        parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
72
    }
72
    }
Zeile 73... Zeile 73...
73
 
73
 
74
    /**
74
    /**
75
     * Get the raw (unformatted) message for this error.
-
 
76
     *
-
 
77
     * @return string
75
     * Get the raw (unformatted) message for this error.
78
     */
76
     */
79
    public function getRawMessage(): string
77
    public function getRawMessage(): string
80
    {
78
    {
81
        return $this->rawMessage;
79
        return $this->rawMessage;
Zeile 104... Zeile 102...
104
     * Create an ErrorException from an Error.
102
     * Create an ErrorException from an Error.
105
     *
103
     *
106
     * @deprecated psySH no longer wraps Errors
104
     * @deprecated psySH no longer wraps Errors
107
     *
105
     *
108
     * @param \Error $e
106
     * @param \Error $e
109
     *
-
 
110
     * @return self
-
 
111
     */
107
     */
112
    public static function fromError(\Error $e): self
108
    public static function fromError(\Error $e): self
113
    {
109
    {
114
        return new self($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e);
110
        return new self($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e);
115
    }
111
    }