Skip to content

Commit

Permalink
Change autoloading include path
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Aug 27, 2018
1 parent 6690b47 commit 1c09e70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/phptal-lint
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env php
<?php
require_once __DIR__ . '/../vendor/autoload.php';

foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require_once $file;
break;
}
}

use Scn\PhpTalLint\PhpTalLintCli;
use Scn\PhpTalLint\TestRunner;
Expand Down

0 comments on commit 1c09e70

Please sign in to comment.