CoreFiles by mySites.guru
ProxyManagerCaster.php33 lines, 721 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
a35495d04105d780ee8133f30640ddbe
sha1
dfd38016a0b5e9b5ff2dca7716101debc9af6776
sha256
dec59baa7b5dd638ab2cedbb82911c8e5dcbc7f608b30c8a77c5110021b6f511
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\VarDumper\Caster;

use ProxyManager\Proxy\ProxyInterface;
use Symfony\Component\VarDumper\Cloner\Stub;

/**
 * @author Nicolas Grekas <[email protected]>
 *
 * @final
 */
class ProxyManagerCaster
{
    public static function castProxy(ProxyInterface $c, array $a, Stub $stub, bool $isNested)
    {
        if ($parent = get_parent_class($c)) {
            $stub->class .= ' - '.$parent;
        }
        $stub->class .= '@proxy';

        return $a;
    }
}

The same content is in 132 releases, Joomla 4.0.0-beta to 5.0.0-alpha1. See them all, or every version of this file.