CoreFiles by mySites.guru
GmpCaster.php32 lines, 749 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
3e1e7a1691603fbee609a246b700b821
sha1
cb034a04cada071c066d96524a4891025c24bc8b
sha256
9c995a9f20ba86d7ee402ce64ea0128e606f525755f2c8283f1c203b612a317e
<?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
 */
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 240 releases, Joomla 4.0.0-beta to 6.0.0-alpha3. See them all, or every version of this file.