mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°8772 - Form dependencies manager implementation
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
This commit is contained in:
32
lib/symfony/validator/Exception/UnexpectedValueException.php
Normal file
32
lib/symfony/validator/Exception/UnexpectedValueException.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* 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 <christian.flothmann@sensiolabs.de>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user