File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 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 ' ;
You can’t perform that action at this time.
0 commit comments