/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
.github/sa-tools/rules/bootstrap.php
19 строк
670 B
Nicolas Grekas
Add contributor skills for security review, hardening rules and triage
12 июн 2026, 10:58
12 июн 2026, 10:58
81a4c9e
Код
Авторство
О чём код?
<?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. */ // Autoloads the global-namespace *Rule.php classes in this folder so PHPStan can // instantiate the rules listed in ../rules.neon. New rules are picked up with no // extra wiring: drop a "<Name>Rule.php" here and add it to rules.neon's "rules:". spl_autoload_register(static function (string $class): void { if (!str_contains($class, '\\') && is_file($file = __DIR__.'/'.$class.'.php')) { require_once $file; } });