Skip to content

Commit 74130b9

Browse files
author
Greg Bowler
committed
tweak: reverse autoload location search
1 parent f7fbb8f commit 74130b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
chdir(dirname($_SERVER["DOCUMENT_ROOT"]));
1010
ini_set("display_errors", "on");
11+
ini_set("html_errors", "false");
1112
/**
1213
* Before any code is executed, return false here if a static file is requested.
1314
* When running the PHP inbuilt server, this will output the static file.
@@ -26,7 +27,7 @@
2627
* files exist.
2728
* @link https://getcomposer.org/doc/00-intro.md
2829
*/
29-
foreach([__DIR__, dirname($_SERVER["DOCUMENT_ROOT"])] as $dir) {
30+
foreach([dirname($_SERVER["DOCUMENT_ROOT"]), __DIR__] as $dir) {
3031
$autoloadPath = "$dir/vendor/autoload.php";
3132
if(file_exists($autoloadPath)) {
3233
/** @noinspection PhpIncludeInspection */

0 commit comments

Comments
 (0)