Raise string to class conversion warning for static strings
commit41b466714b4d95e3975c33fae2a42332e884bff4
authorArnab De <arnabde@fb.com>
Sat, 16 Apr 2022 04:32:01 +0000 (15 21:32 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 16 Apr 2022 04:32:01 +0000 (15 21:32 -0700)
tree488bb036d1c9f6b5c85bbb2fb3a97149311b15a3
parente82e7bd1fb0335afcfe45fb597f19fd260b1f9b5
Raise string to class conversion warning for static strings

Summary: We currently do not raise string to class conversion notice for static strings, which seems to be a bug.

Reviewed By: ricklavoie

Differential Revision: D35652140

fbshipit-source-id: 111fe8ef6a75dc87121620d64e92c63ad7dd825f
hphp/runtime/base/runtime-error.cpp
hphp/runtime/vm/jit/irgen-basic.cpp
hphp/runtime/vm/jit/irgen-call.cpp
hphp/test/slow/class-ptr/class-ref-warn.php.expectf