Skip to content

Commit

Permalink
fix(autoload): Move autoloading to more unique file name to workaroun…
Browse files Browse the repository at this point in the history
…d PHPCS relative path confusion
  • Loading branch information
klausi authored Dec 7, 2019
1 parent 326c945 commit c11c295
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/**
* Includes classes which are not detected by PHP_CodeSniffer's autoloader.
*
* This file has a weird name on purpose because of https://github.com/squizlabs/PHP_CodeSniffer/pull/2751
*
* @category PHP
* @package PHP_CodeSniffer
* @link http://pear.php.net/package/PHP_CodeSniffer
Expand Down
2 changes: 1 addition & 1 deletion coder_sniffer/Drupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/>

<autoload>autoload.php</autoload>
<autoload>./coder_unique_autoload_phpcs_bug_2751.php</autoload>

<rule ref="Internal.NoCodeFound">
<!-- Empty files are fine, might be used for testing. -->
Expand Down
2 changes: 1 addition & 1 deletion coder_sniffer/DrupalPractice/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/>

<autoload>../Drupal/autoload.php</autoload>
<autoload>../Drupal/coder_unique_autoload_phpcs_bug_2751.php</autoload>

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

0 comments on commit c11c295

Please sign in to comment.