/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Bridge/PhpUnit/ConstraintTrait.php
27 строк
585 B
Nicolas Grekas
[PhpUnitBridge] Bump v7.4 to PHP >= 8.1
15 июл 2025, 18:21
15 июл 2025, 18:21
d1ffdb9
Код
Авторство
О чём код?
<?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\Bridge\PhpUnit; use PHPUnit\Framework\Constraint\Constraint; $r = new \ReflectionClass(Constraint::class); if (!$r->getMethod('evaluate')->hasReturnType()) { trait ConstraintTrait { use Legacy\ConstraintTraitForV8; } } else { trait ConstraintTrait { use Legacy\ConstraintTraitForV9; } }