Component evidence

Exception/UnexpectedPropertyException.php

symfony · src/Symfony/Component/Serializer/Exception/UnexpectedPropertyException.php · php · MIT
securitytag:knn-classified

Exception thrown when a serializer encounters an unexpected property during deserialization.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?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\Serializer\Exception;

/**
 * UnexpectedPropertyException.
 *
 * @author Aurélien Pillevesse <aurelienpillevesse@hotmail.fr>
 */
class UnexpectedPropertyException extends \UnexpectedValueException implements ExceptionInterface
{
    public function __construct(
        public readonly string $property,
        ?\Throwable $previous = null,
    ) {
        $msg = \

... (truncated -- full source via MCP)