Skip to content

Commit 2ad671e

Browse files
committed
only add require when needed
1 parent 1599382 commit 2ad671e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.php-cs-fixer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
use PhpCsFixer\Config;
44
use PhpCsFixer\Finder;
55

6-
require __DIR__ . '/vendor/autoload.php';
6+
if (file_exists(__DIR__.'/vendor/autoload.php')) {
7+
require __DIR__.'/vendor/autoload.php';
8+
}
79

810
$finder = Finder::create()
911
->in(__DIR__.'/')

0 commit comments

Comments
 (0)