Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a0418f7

Browse files
committed
Fix importing
1 parent c44311b commit a0418f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎tests/bootstrap.php‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414

1515
declare(strict_types=1);
1616

17+
use PHP_CodeSniffer\Config;
18+
use PHP_CodeSniffer\Util\Standards;
19+
1720
$myStandardName = 'MO4';
1821

1922
require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/tests/bootstrap.php';
2023

2124
// Add this Standard.
22-
PHP_CodeSniffer\Config::setConfigData(
25+
Config::setConfigData(
2326
'installed_paths',
2427
__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$myStandardName,
2528
true
2629
);
2730

2831
// Ignore all other Standards in tests.
29-
$standards = PHP_CodeSniffer\Util\Standards::getInstalledStandards();
32+
$standards = Standards::getInstalledStandards();
3033
$standards[] = 'Generic';
3134

3235
$ignoredStandardsStr = implode(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /