mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
Trim quotes from frankenphp app path to ensure valid directory check
This commit is contained in:
@@ -140,6 +140,7 @@ trait frankenphp
|
|||||||
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
|
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
|
||||||
|
|
||||||
if ($frankenphpAppPath) {
|
if ($frankenphpAppPath) {
|
||||||
|
$frankenphpAppPath = trim($frankenphpAppPath, "\"'");
|
||||||
if (!is_dir($frankenphpAppPath)) {
|
if (!is_dir($frankenphpAppPath)) {
|
||||||
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user