Skip to content

Commit

Permalink
fix bin autoload problems
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 committed Jul 11, 2019
1 parent 1aa0102 commit 6a3450f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/phpdoc-to-rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}

foreach([null,'vendor'] as $vendor_dir)
foreach(['vendor',null] as $vendor_dir)
{

if(defined('PHPUNIT_COMPOSER_INSTALL'))
{
continue;
}

$dir = [__DIR__];
for($a=0;$a=3;$a++)
{
Expand All @@ -19,6 +25,8 @@ foreach([null,'vendor'] as $vendor_dir)

$file.= DIRECTORY_SEPARATOR . 'autoload.php';

echo $file .PHP_EOL;

if (file_exists($file)) {
define('PHPUNIT_COMPOSER_INSTALL', $file);
break;
Expand Down

0 comments on commit 6a3450f

Please sign in to comment.