Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Update dependencies for 4.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Mar 26, 2019
1 parent 239025b commit a8c2ce9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
10 changes: 6 additions & 4 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ php --version
cd $(mktemp -d)
curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
)
if (hhvm --version | grep -q -- -dev); then
rm composer.lock
fi
composer install

hh_client
hhvm vendor/bin/hacktest tests/
if !(hhvm --version | grep -q -- -dev); then
hhvm vendor/bin/hhast-lint
fi

vendor/bin/hacktest tests/
vendor/bin/hhast-lint
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/router/PrefixMatchingResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function resolveWithMap(
$matched = $matches[0];
$remaining = Str\strip_prefix($path, $matched);

$data = Dict\filter_keys($matches, $key ==> is_string($key));
$data = Dict\filter_keys($matches, $key ==> $key is string);
$sub = $regexps[$regexp];

if ($sub->isResponder()) {
Expand Down
2 changes: 1 addition & 1 deletion src/router/SimpleRegexpResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function resolve(
continue;
}
$ret =
tuple($responder, Dict\filter_keys($matches, $key ==> is_string($key)));
tuple($responder, Dict\filter_keys($matches, $key ==> $key is string));
return $ret;
}
throw new NotFoundException();
Expand Down

0 comments on commit a8c2ce9

Please sign in to comment.