Skip to content

Commit c11c295

Browse files
authored
fix(autoload): Move autoloading to more unique file name to workaround PHPCS relative path confusion
1 parent 326c945 commit c11c295

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

coder_sniffer/Drupal/autoload.php renamed to coder_sniffer/Drupal/coder_unique_autoload_phpcs_bug_2751.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
* Includes classes which are not detected by PHP_CodeSniffer's autoloader.
55
*
6+
* This file has a weird name on purpose because of https://github.com/squizlabs/PHP_CodeSniffer/pull/2751
7+
*
68
* @category PHP
79
* @package PHP_CodeSniffer
810
* @link http://pear.php.net/package/PHP_CodeSniffer

coder_sniffer/Drupal/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
66
<arg name="encoding" value="utf-8"/>
77

8-
<autoload>autoload.php</autoload>
8+
<autoload>./coder_unique_autoload_phpcs_bug_2751.php</autoload>
99

1010
<rule ref="Internal.NoCodeFound">
1111
<!-- Empty files are fine, might be used for testing. -->

coder_sniffer/DrupalPractice/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
66
<arg name="encoding" value="utf-8"/>
77

8-
<autoload>../Drupal/autoload.php</autoload>
8+
<autoload>../Drupal/coder_unique_autoload_phpcs_bug_2751.php</autoload>
99

1010
<rule ref="Internal.NoCodeFound">
1111
<!-- Empty files are fine, might be used for testing. -->

0 commit comments

Comments
 (0)