Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | 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 30... Zeile 30...
30
 
30
 
31
    /**
31
    /**
32
     * Create a ParseErrorException from a PhpParser Error.
32
     * Create a ParseErrorException from a PhpParser Error.
33
     *
33
     *
34
     * @param \PhpParser\Error $e
-
 
35
     *
-
 
36
     * @return self
34
     * @param \PhpParser\Error $e
37
     */
35
     */
38
    public static function fromParseError(\PhpParser\Error $e): self
36
    public static function fromParseError(\PhpParser\Error $e): self
39
    {
37
    {
40
        return new self($e->getRawMessage(), $e->getStartLine());
38
        return new self($e->getRawMessage(), $e->getStartLine());