statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Running "composer install" without --no-dev causes open_basedir restriction to fail #2505

Open FrittenKeeZ opened 4 years ago

FrittenKeeZ commented 4 years ago

Running composer install within the Statamic folder and open_basedir restriction enabled, will cause the site to hit an internal 500 error.

The problem lies within composer.json in this section:

"autoload-dev": {
    "psr-4": {
        "Tests\\": [
            "../../tests",
            "../site/tests"
        ],
        "Statamic\\Addons\\": "../../tests/addon-stubs"
    }
},

Apart from site tests, the others paths are jumping up one level too much. This should be corrected to:

"autoload-dev": {
    "psr-4": {
        "Tests\\": [
            "../tests",
            "../site/tests"
        ],
        "Statamic\\Addons\\": "../tests/addon-stubs"
    }
},