CoreFiles by mySites.guru
MysqliCaster.php33 lines, 691 bytes, from Joomla_5.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.2.0-beta1
md5
8da9c86731153e69f234cc8187e58d61
sha1
2b07f6a0c87db9eec9e56337454e47f2ef6cacb2
sha256
d482ab29b4504eeda01f29a6ef50268267344951131ac1785bb6568ad54efa17
<?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 MysqliCaster
{
    public static function castMysqliDriver(\mysqli_driver $c, array $a, Stub $stub, bool $isNested): array
    {
        foreach ($a as $k => $v) {
            if (isset($c->$k)) {
                $a[$k] = $c->$k;
            }
        }

        return $a;
    }
}

The same content is in 236 releases, Joomla 4.2.0-alpha3 to 6.3.0-alpha1. See them all, or every version of this file.