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

Commit

Permalink
instanceof -> is_a
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jul 22, 2019
1 parent 9bb2f65 commit f8912b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/request-parameters/RequestParametersBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ classname<T> $class,
$spec = $specs[$name];
invariant(
/* HH_FIXME[4162] need reified generics */
$spec instanceof $class,
\is_a($spec, $class),
'Expected %s to be a %s, got %s',
$name,
$class,
Expand Down
2 changes: 1 addition & 1 deletion src/uri-patterns/UriBuilderBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ classname<TypedUriParameter<T>> $parameter_type,
\implode(', ', $this->parameters->keys()->map($x ==> "'".$x."'")),
);
invariant(
$part instanceof $parameter_type,
\is_a($part, $parameter_type),
'Expected %s to be a %s, got a %s',
$name,
$parameter_type,
Expand Down

0 comments on commit f8912b0

Please sign in to comment.