CoreFiles by mySites.guru
UnexpectedValueException.php32 lines, 738 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
1cd82e58470446504f96614566d2d099
sha1
ba1a6b85d803fe27b0d510cf486d49f638b94085
sha256
65d1ee6727de3c6577169cc9ce0b4f3aece07f6933a3da2479065dd8834b5561
<?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\Validator\Exception;

/**
 * @author Christian Flothmann <[email protected]>
 */
class UnexpectedValueException extends UnexpectedTypeException
{
    private string $expectedType;

    public function __construct(mixed $value, string $expectedType)
    {
        parent::__construct($value, $expectedType);

        $this->expectedType = $expectedType;
    }

    public function getExpectedType(): string
    {
        return $this->expectedType;
    }
}

The same content is in 135 releases, Joomla 5.1.0-beta1 to 6.2.1. See them all, or every version of this file.