Type parent::__construct in TAST
commit874ec42d889e5683470c26411c65fa0acd7e2aa5
authorJake Bailey <jakebailey@fb.com>
Sat, 7 Apr 2018 00:21:29 +0000 (6 17:21 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sat, 7 Apr 2018 00:23:55 +0000 (6 17:23 -0700)
tree30186ec98a1ea2bf8d05069a9687088a538f35fd
parentead89cbe24db1ec85098546986b2b7143f444fd6
Type parent::__construct in TAST

Summary: Instead of leaving `parent::__construct` calls implicitly typed, this change threads the parent's class type and its constructor function type up so that they can be stored in the TAST.

Reviewed By: pittsw

Differential Revision: D7439999

fbshipit-source-id: 94f1ec01b0c645c3650e87854cb416be79ecaf1f
hphp/hack/src/typing/typing.ml
hphp/hack/src/typing/typing_attributes.ml
hphp/hack/test/tast/parent_construct.php [new file with mode: 0644]
hphp/hack/test/tast/parent_construct.php.exp [new file with mode: 0644]