CoreFiles by mySites.guru
GmpCaster.php34 lines, 783 bytes, from Joomla_6.1.2-Stable-Full_Package.zip
Raw History Compare with 6.1.1
md5
a5216c5b0c052942720804fc4e5b9eb9
sha1
dcff08d169627e4d0b96947e717bc83313f667ba
sha256
650a87d9172097cd1f6c467bbf63f7b4c882b0f87c96ce28897f842b2d6735e6
<?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 Symfony\Component\VarDumper\Cloner\Stub;

/**
 * Casts GMP objects to array representation.
 *
 * @author Hamza Amrouche <[email protected]>
 * @author Nicolas Grekas <[email protected]>
 *
 * @final
 *
 * @internal since Symfony 7.3
 */
class GmpCaster
{
    public static function castGmp(\GMP $gmp, array $a, Stub $stub, bool $isNested, int $filter): array
    {
        $a[Caster::PREFIX_VIRTUAL.'value'] = new ConstStub(gmp_strval($gmp), gmp_strval($gmp));

        return $a;
    }
}

The same content is in 49 releases, Joomla 6.0.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.