Skip to content

Commit d7f2eed

Browse files
sandermarechalweynhamz
authored andcommitted
Fix autoloader.php path
1 parent bcad0aa commit d7f2eed

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)