/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ObjectMapper/Tests/Fixtures/InvalidConfiguration.php
22 строки
544 B
Michaël Marinetti
[ObjectMapper] throw exception when a defined transform cannot be called
09 янв 2026, 17:49
09 янв 2026, 17:49
3939aa4
Код
Авторство
О чём код?
<?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\ObjectMapper\Tests\Fixtures; use Symfony\Component\ObjectMapper\Attribute\Map; #[Map(D::class)] class InvalidConfiguration { public function __construct(#[Map('baz')] public readonly string $foo, #[Map(transform: 'wrongMethod')] public readonly string $bar) { } }