Skip to content

Commit 28cd668

Browse files
committed
ACP2E-2032: Fix failed builds
1 parent d95dff8 commit 28cd668

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

phpunit-bootstrap.php

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
<?php
2-
32
/**
4-
* Bootstrap file for tests.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66

7-
if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
8-
define('PHP_CODESNIFFER_IN_TESTS', true);
9-
}
10-
11-
// The below two defines are needed for PHPCS 3.x.
12-
if (defined('PHP_CODESNIFFER_CBF') === false) {
13-
define('PHP_CODESNIFFER_CBF', false);
14-
}
15-
16-
if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
17-
define('PHP_CODESNIFFER_VERBOSITY', 0);
7+
/**
8+
* Define PHP 8.1 tokens
9+
*/
10+
if (!defined('T_READONLY')) {
11+
define('T_READONLY', 42401);
1812
}
1913

20-
require_once __DIR__ . '/vendor/squizlabs/php_codesniffer/autoload.php';
21-
require_once __DIR__ . '/vendor/phpcompatibility/php-compatibility/PHPCSAliases.php';
14+
require_once __DIR__ . '/vendor/squizlabs/php_codesniffer/tests/bootstrap.php';

0 commit comments

Comments
 (0)