/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Uid/Exception/InvalidArgumentException.php
29 строк
902 B
Nicolas Grekas
[Uid] Various fixes and hardenings
18 май 2026, 22:44
18 май 2026, 22:44
dda2452
Код
Авторство
О чём код?
<?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\Uid\Exception; /** * The $invalidValue property holds the raw value that failed validation, which * is typically untrusted user input of arbitrary size or content. The exception * message itself is safe to surface, but consumers should not serialize the * exception verbatim (var_export, serialize, structured loggers dumping public * properties) without redacting or truncating $invalidValue. */ class InvalidArgumentException extends \InvalidArgumentException { public function __construct( string $message, public readonly mixed $invalidValue = null, ) { parent::__construct($message); } }