fix error message when instance method/property called as static method/property... nightly-2021.11.11
commite973891d2153159681eeef4e7470203ac0876018
authorLong Phan <pvlong2000@gmail.com>
Wed, 10 Nov 2021 23:37:03 +0000 (10 15:37 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 10 Nov 2021 23:38:39 +0000 (10 15:38 -0800)
tree8ecff76d76d5ef06a6fef676fb0360e56a60f659
parenta6bd51d2de4fadb8adec94305e6ced0f2eafad6d
fix error message when instance method/property called as static method/property (#8921)

Summary:
This PR:
- Update error message when an instance method/property is used as a static method/property
- Link to this [Issue](https://gist.github.com/shayne-fletcher/4cece69915f546ea68983172aaa7318e)

Pull Request resolved: https://github.com/facebook/hhvm/pull/8921

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Reviewed By: Wilfred

Differential Revision: D32119355

Pulled By: shayne-fletcher

fbshipit-source-id: b313f1241debe4df7b77b247b3c3c86c0c7f887f
hphp/hack/src/errors/errors.ml
hphp/hack/test/typecheck/instance_property_as_class_constant.php [new file with mode: 0644]
hphp/hack/test/typecheck/instance_property_as_class_constant.php.exp [new file with mode: 0644]