Skip to content
Permalink
Browse files
fixes for HHVM 4.29+
  • Loading branch information
jjergus committed Oct 24, 2019
1 parent 353ead3 commit 20b292e78a5083871964d26362f50b9037c536b0
Showing with 23 additions and 24 deletions.
  1. +18 −19 composer.lock
  2. +3 −3 src/build/AbstractMarkdownRenderBuildStep.php
  3. +1 −1 src/site/controllers/HTTP404Controller.php
  4. +1 −1 src/site/controllers/WebController.php

Some generated files are not rendered by default. Learn more.

@@ -57,9 +57,9 @@ private function parseSingleRenderResult(string $line): ?string {
return null;
}
Log::v('-');
list($_in, $out) = \explode(' -> ', $line);
// $in still has 'OK] ' prefix, but we don't need it now anyway
return $out;
$parts = \explode(' -> ', $line);
// $parts[0] still has 'OK] ' prefix, but we don't need it now anyway
return $parts[1];
}

public static function getOutputFileName(string $input): string {
@@ -118,7 +118,7 @@ protected function getNotFoundMessage(): XHPRoot {
$parts = explode('/', $path);

if (count($parts) === 2) {
list($_, $id) = $parts;
$id = $parts[1];
$url = $this->getSuggestedUrl($id);
if ($url !== null) {
return (
@@ -36,7 +36,7 @@ public function __construct(
ImmMap<string, string> $parameters,
private ServerRequestInterface $request,
) {
$combined_params = $parameters->toMap();
$combined_params = new Map($parameters);
foreach ($request->getQueryParams() as $key => $value) {
if (is_array($value)) {
continue;

0 comments on commit 20b292e

Please sign in to comment.