diff --git a/code/Server.php b/code/Server.php index 3264343..706e904 100644 --- a/code/Server.php +++ b/code/Server.php @@ -13,7 +13,7 @@ class Server /** * The command to initiate the server * - * @var string + * @var array */ private $command; diff --git a/code/ServerFactory.php b/code/ServerFactory.php index 9f5df65..e8c269c 100644 --- a/code/ServerFactory.php +++ b/code/ServerFactory.php @@ -55,7 +55,7 @@ public function launchServer($options) $command = "SERVE_BOOTSTRAP_FILE=" . escapeshellarg($options['bootstrapFile'] ?? '') . " $command"; } - $server = new Server($command, $host, $port); + $server = new Server([ $command ], $host, $port); $server->start(); return $server; diff --git a/composer.json b/composer.json index 47734db..d8091a6 100644 --- a/composer.json +++ b/composer.json @@ -4,12 +4,12 @@ "license": "MIT", "require": { "php": "^8.1", - "symfony/process": "^4.0", + "symfony/process": "^6.1.3", "silverstripe/framework": "^5" }, "require-dev": { "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3" + "squizlabs/php_codesniffer": "^3.7" }, "autoload": { "psr-4": { @@ -24,4 +24,4 @@ "scripts": { "lint": "vendor/bin/phpcs --standard=PSR2 code/ bin/ tests/" } -} +} \ No newline at end of file