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

Commit 054039b

Browse files
committed
instanceof -> is, require 4.13
1 parent 083e02e commit 054039b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: required
22
language: generic
33
services: docker
44
env:
5-
- HHVM_VERSION=4.6-latest
5+
- HHVM_VERSION=4.13-latest
66
- HHVM_VERSION=latest
77
- HHVM_VERSION=nightly
88
install:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"keywords": ["hack", "router", "routing", "hhvm"],
55
"homepage": "https://github.com/hhvm/hack-router-codegen",
66
"require": {
7-
"hhvm": "^4.6",
8-
"facebook/hack-router": "^0.18",
7+
"hhvm": "^4.13",
8+
"facebook/hack-router": "^0.19",
99
"facebook/hack-http-request-response-interfaces": "^0.2",
1010
"facebook/hack-codegen": "^4.1.0",
1111
"facebook/definition-finder": "^2.7",

src/privateimpl/ClassFacts.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class ClassFacts {
3636
): ImmMap<classname<T>, ScannedClass> {
3737
$mappable = Map { };
3838
foreach ($this->classes as $class) {
39-
if (!$class instanceof ScannedClass) {
39+
if (!$class is ScannedClass) {
4040
continue;
4141
}
4242
$name = $this->asClassname($wanted, $class->getName());

src/privateimpl/ControllerFacts.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class ControllerFacts<T as IncludeInUriMap> {
4242
private function isUriMappable(
4343
ScannedClassish $class
4444
): bool {
45-
if (!$class instanceof ScannedClass) {
45+
if (!$class is ScannedClass) {
4646
return false;
4747
}
4848
if ($class->isAbstract()) {

src/uriparameters/spec/EnumParameterCodegenSpec.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class EnumParameterCodegenSpec extends UriParameterCodegenSpec {
1616
RequestParameter $param,
1717
): EnumRequestParameter<T> {
1818
invariant(
19-
$param instanceof EnumRequestParameter,
19+
$param is EnumRequestParameter<_>,
2020
'Expected %s to be an enum parameter, got %s',
2121
$param->getName(),
2222
\get_class($param),

tests/RouterCodegenBuilderTest.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ final class RouterCodegenBuilderTest extends BaseCodegenTestCase {
6565
self::CODEGEN_NS,
6666
'MySiteRouter',
6767
);
68-
assert($class instanceof \Facebook\HackCodegen\CodegenFile);
68+
assert($class is \Facebook\HackCodegen\CodegenFile);
6969
return $class->render();
7070
}
7171

0 commit comments

Comments
 (0)