Skip to content

Commit a846888

Browse files
committed
Merge branch 'feature/fix-autoloader-path' into develop
Fix #8
2 parents 3c7a7f7 + d7f2eed commit a846888

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phpctags

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/php -q
22
<?php
3-
if (is_dir($vendor = __DIR__ . '/vendor')) {
4-
require($vendor . '/autoload.php');
5-
} elseif (is_dir($vendor = __DIR__ . '/../../../vendor')) {
6-
require($vendor . '/autoload.php');
3+
if (file_exists($autoload = __DIR__ . '/vendor/autoload.php')) {
4+
require($autoload);
5+
} elseif (file_exists($autoload = __DIR__ . '/../../autoload.php')) {
6+
require($autoload);
77
} else {
88
die(
99
'You must set up the project dependencies, run the following commands:'.PHP_EOL.

0 commit comments

Comments
 (0)