Skip to content

Commit 1cf1ebb

Browse files
author
addyh
authored
Added .toString() to line 153 to avoid type-error
1 parent d8f11a4 commit 1cf1ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var path = require('path');
99
var fs = require('fs');
1010
var shell = require('shelljs');
1111

12-
var PHP_CGI = shell.which('php-cgi').toString();
12+
var PHP_CGI = shell.which('php-cgi');
1313

1414
if (!PHP_CGI) {
1515
throw new Error('"php-cgi" cannot be found');
@@ -150,7 +150,7 @@ function runPHP(req, response, next, url, file) {
150150
if (/.*?\.php$/.test(file)) {
151151
var res = '', err = '';
152152

153-
var php = child.spawn(PHP_CGI, [], {
153+
var php = child.spawn(PHP_CGI.toString(), [], {
154154
env: env
155155
});
156156

0 commit comments

Comments
 (0)