Skip to content
Snippets Groups Projects
Commit a33d3388 authored by Evgeny Chernyavskiy's avatar Evgeny Chernyavskiy Committed by Klaus Purer
Browse files

fix(autoload): Fix PHP Fatal error: ClassFilesSniff namespace clash (#3048092)

parent 44c80c21
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="DrupalPractice"> <ruleset name="DrupalPractice">
<description>Drupal best practice checks</description> <description>Drupal best practice checks</description>
<!-- All Drupal code files must be UTF-8 encoded and we treat them as such. --> <!-- All Drupal code files must be UTF-8 encoded and we treat them as such. -->
<arg name="encoding" value="utf-8"/> <arg name="encoding" value="utf-8"/>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/> <arg name="extensions" value="php,module,inc,install,test,profile,theme,yml"/>
<autoload>../Drupal/autoload.php</autoload> <autoload>../Drupal/autoload.php</autoload>
<!-- We use a static method from a sniff from the other standard, so we need
this autoload hack here. -->
<autoload>../Drupal/Sniffs/InfoFiles/ClassFilesSniff.php</autoload>
<rule ref="Internal.NoCodeFound"> <rule ref="Internal.NoCodeFound">
<!-- Empty files are fine, might be used for testing. --> <!-- Empty files are fine, might be used for testing. -->
<exclude-pattern>*</exclude-pattern> <exclude-pattern>*</exclude-pattern>
</rule> </rule>
<rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable"> <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable">
<!-- Do not run this sniff on template files. --> <!-- Do not run this sniff on template files. -->
<exclude-pattern>*.tpl.php</exclude-pattern> <exclude-pattern>*.tpl.php</exclude-pattern>
</rule> </rule>
<!-- Ignore various version control directories. --> <!-- Ignore various version control directories. -->
<exclude-pattern>*/\.git/*</exclude-pattern> <exclude-pattern>*/\.git/*</exclude-pattern>
<exclude-pattern>*/\.svn/*</exclude-pattern> <exclude-pattern>*/\.svn/*</exclude-pattern>
<exclude-pattern>*/\.hg/*</exclude-pattern> <exclude-pattern>*/\.hg/*</exclude-pattern>
<exclude-pattern>*/\.bzr/*</exclude-pattern> <exclude-pattern>*/\.bzr/*</exclude-pattern>
</ruleset> </ruleset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment