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 23... Zeile 23...
23
if (!\function_exists('Psy\\sh')) {
23
if (!\function_exists('Psy\\sh')) {
24
    /**
24
    /**
25
     * Command to return the eval-able code to startup PsySH.
25
     * Command to return the eval-able code to startup PsySH.
26
     *
26
     *
27
     *     eval(\Psy\sh());
27
     *     eval(\Psy\sh());
28
     *
-
 
29
     * @return string
-
 
30
     */
28
     */
31
    function sh(): string
29
    function sh(): string
32
    {
30
    {
33
        if (\version_compare(\PHP_VERSION, '8.0', '<')) {
31
        if (\version_compare(\PHP_VERSION, '8.0', '<')) {
34
            return '\extract(\Psy\debug(\get_defined_vars(), isset($this) ? $this : @\get_called_class()));';
32
            return '\extract(\Psy\debug(\get_defined_vars(), isset($this) ? $this : @\get_called_class()));';