Include capabilities in stub methods
commitdb4aca6ebf41e9f32482d777f7ee889e905a75df
authorWilfred Hughes <wilfred@fb.com>
Thu, 18 Aug 2022 20:57:03 +0000 (18 13:57 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Aug 2022 20:57:03 +0000 (18 13:57 -0700)
treed1f26d5c2934a5b7da03c4a18760d29a015af6d5
parent286280398025c3a84731f5c6694db2989d9feec8
Include capabilities in stub methods

Summary:
Previously we were ignoring all capabilities when overriding methods.

If we're overriding a method with capabilities specified, use the same capabilities on the generated stub method.

Reviewed By: hgoldstein

Differential Revision: D38801054

fbshipit-source-id: 327e03930d9fc46893c55e05ed4b7f74c11bb12a
hphp/hack/src/typing/typing_skeleton.ml
hphp/hack/test/quickfixes/missing_method_contexts.php [new file with mode: 0644]
hphp/hack/test/quickfixes/missing_method_contexts.php.exp [new file with mode: 0644]
hphp/hack/test/quickfixes/missing_method_pure.php [new file with mode: 0644]
hphp/hack/test/quickfixes/missing_method_pure.php.exp [new file with mode: 0644]