Skip to content

Commit 671176f

Browse files
committed
Correctly load PHPCS when script is executed from a external standard
1 parent 7511f22 commit 671176f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/phpcs-check-sniff-doc-code-examples

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ $devToolsAutoloadLocations = [
3636
$phpcsAutoloadLocations = [
3737
__DIR__ . '/../vendor/squizlabs/php_codesniffer/autoload.php', // Git clone.
3838
__DIR__ . '/../squizlabs/php_codesniffer/autoload.php', // Composer bin dir install.
39-
__DIR__ . '/../../autoload.php', // Composer dependency for PHPCS itself. Running from vendor/bin/.
40-
__DIR__ . '/../../../../autoload.php', // Composer dependency running from vendor/phpcsstandards/phpcsdevtools/bin/.
39+
__DIR__ . '/../../../squizlabs/php_codesniffer/autoload.php', // Composer dependency install for ext standards.
40+
__DIR__ . '/../../../../autoload.php', // Composer dependency install for PHPCS itself.
4141
];
4242

4343
// Try to find a usable PHPCSDevTools autoload file.

0 commit comments

Comments
 (0)