Commit ee12b505 authored by Klaus Purer's avatar Klaus Purer
Browse files

fix(DisallowLongArraySyntax): Fix autoloading problem when sniff is used from...

fix(DisallowLongArraySyntax): Fix autoloading problem when sniff is used from phpcs.xml file (#3062570)
parent 35277fc8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -9,8 +9,6 @@

namespace Drupal\Sniffs\Arrays;

require_once __DIR__.'/../../../DrupalPractice/Project.php';

use PHP_CodeSniffer\Files\File;
use DrupalPractice\Project;
use PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff as GenericDisallowLongArraySyntaxSniff;
+3 −0
Original line number Diff line number Diff line
@@ -12,3 +12,6 @@
// Abstract base classes are not discovered by the autoloader.
require_once 'Sniffs/Semantics/FunctionCall.php';
require_once 'Sniffs/Semantics/FunctionDefinition.php';

// Helper classes also need to be included manually.
require_once __DIR__.'/../DrupalPractice/Project.php';