Skip to content

Commit be1d1f6

Browse files
committed
strict fix
1 parent 42c24fc commit be1d1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/PhpInterpreter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct(string $path, array $args = [])
7070

7171
$parts = explode("\r\n\r\n", $output, 2);
7272
$this->cgi = count($parts) === 2;
73-
$this->info = @unserialize(strstr($parts[$this->cgi], 'O:8:"stdClass"'));
73+
$this->info = @unserialize((string) strstr($parts[$this->cgi], 'O:8:"stdClass"'));
7474
$this->error .= strstr($parts[$this->cgi], 'O:8:"stdClass"', true);
7575
if (!$this->info) {
7676
throw new \Exception("Unable to detect PHP version (output: $output).");

0 commit comments

Comments
 (0)