Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
Fixed some pretty terrible typechecking mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobconley committed Sep 21, 2019
1 parent cd5ae7d commit e898183
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ignored_paths = [ 'vendor/bin/.+' ]
ignored_paths = [ "vendor/bin/.+" ]
2 changes: 1 addition & 1 deletion src/object.hack
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class DictAccess {
}
public function _datetime(string $key) : ?DateTime {
if(! \array_key_exists($key, $this->dict)) return NULL;
return $this->int($key);
return $this->datetime($key);
}

// Lists
Expand Down
9 changes: 8 additions & 1 deletion tests/test-all
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ cd "$( dirname ${BASH_SOURCE[0]} )"

status=1

echo "Running autoloader..."
echo "Typechecker..."
hh_client
if [ $? -ne 0 ]; then
echo "Typechecker failed. Aborting"
exit 1
fi

echo "Autoloader..."
pushd ..
./vendor/bin/hh-autoload
popd
Expand Down

0 comments on commit e898183

Please sign in to comment.