From 079f6885737f6b1b4028b4a264f57a6be0fe2260 Mon Sep 17 00:00:00 2001 From: Michael Moll Date: Fri, 8 Dec 2023 20:37:17 +0100 Subject: [PATCH] Fix importing --- tests/bootstrap.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 5e2f6b76..0a7e8fa3 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -14,19 +14,22 @@ declare(strict_types=1); +use PHP_CodeSniffer\Config; +use PHP_CodeSniffer\Util\Standards; + $myStandardName = 'MO4'; require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/tests/bootstrap.php'; // Add this Standard. -PHP_CodeSniffer\Config::setConfigData( +Config::setConfigData( 'installed_paths', __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$myStandardName, true ); // Ignore all other Standards in tests. -$standards = PHP_CodeSniffer\Util\Standards::getInstalledStandards(); +$standards = Standards::getInstalledStandards(); $standards[] = 'Generic'; $ignoredStandardsStr = implode(