CoreFiles by mySites.guru
GdCaster.php30 lines, 694 bytes, from Joomla_6.0.1-Stable-Full_Package.zip
Raw History Compare with 6.0.0
md5
52e06ef67b0ee0059ab243a49f758126
sha1
7b384c1f3fe2d705d9ce7e027ef80b7c3d53d9cd
sha256
c4ce64b194343f8071bedbcd928030c8ce12e9d5cb1f8949a89cd5b7f7381110
<?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;

/**
 * @author Nicolas Grekas <[email protected]>
 *
 * @internal
 */
final class GdCaster
{
    public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array
    {
        $a[Caster::PREFIX_VIRTUAL.'size'] = imagesx($gd).'x'.imagesy($gd);
        $a[Caster::PREFIX_VIRTUAL.'trueColor'] = imageistruecolor($gd);

        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.