Skip to content

Commit d1fbc50

Browse files
author
Dan Cryer
committed
Fix
1 parent 950821a commit d1fbc50

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

phpdoccheck

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
* @link http://www.phptesting.org/
99
*/
1010

11-
$autoloader = dirname(__FILE__) . '/vendor/autoload.php';
11+
$ownVendorAutoloader = dirname(__FILE__) . '/vendor/autoload.php';
12+
$parentVendorAutoloader = dirname(__FILE__) . '/../../autoload.php';
1213

13-
if (file_exists($autoloader)) {
14-
require_once($autoloader);
14+
if (file_exists($ownVendorAutoloader)) {
15+
require_once($ownVendorAutoloader);
16+
} elseif (file_exists($parentVendorAutoloader)) {
17+
require_once($parentVendorAutoloader);
1518
}
1619

1720
require_once(dirname(__FILE__) . '/PhpDocblockChecker/CheckerApplication.php');

0 commit comments

Comments
 (0)