From c72a696391da4608df97f73c84db6eb27fe5929f Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 4 Mar 2024 06:25:34 +0100 Subject: [PATCH] WIP --- phpunit-bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpunit-bootstrap.php b/phpunit-bootstrap.php index 41ef84b..96e4cdf 100644 --- a/phpunit-bootstrap.php +++ b/phpunit-bootstrap.php @@ -73,6 +73,11 @@ die(1); } +$installedStandards = \PHP_CodeSniffer\Util\Standards::getInstalledStandardDetails(); +foreach ($installedStandards as $details) { + \PHP_CodeSniffer\Autoload::addSearchPath($details['path'], $details['namespace']); +} + // Try and load the PHPCSUtils autoloader. if ($phpcsUtilsDir !== false && \file_exists($phpcsUtilsDir . $ds . 'phpcsutils-autoload.php')) { require_once $phpcsUtilsDir . $ds . 'phpcsutils-autoload.php';