Raise notice when class-ref converts string to class implicitly
commitc5662d93ffef276a8cca2d5107b8ec4207c2e720
authorYu-Jung Lo <ylo@fb.com>
Wed, 6 Feb 2019 03:17:38 +0000 (5 19:17 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 6 Feb 2019 03:21:02 +0000 (5 19:21 -0800)
treedf57595a5398d89bd69fcf1ea457b13ab16750fc
parentaeb5001c285d26d48eb426f9bcac08de442f7917
Raise notice when class-ref converts string to class implicitly

Summary: Raise a notice when string is implicitly casted to class.

Reviewed By: ricklavoie

Differential Revision: D13945368

fbshipit-source-id: f26714c43145169ae1525d75bc4ca54885e0085e
14 files changed:
hphp/doc/ir.specification
hphp/runtime/base/runtime-error.cpp
hphp/runtime/base/runtime-error.h
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/jit/dce.cpp
hphp/runtime/vm/jit/ir-opcode.cpp
hphp/runtime/vm/jit/irgen-basic.cpp
hphp/runtime/vm/jit/irlower-builtin-types.cpp
hphp/runtime/vm/jit/memory-effects.cpp
hphp/test/slow/class-ptr/class-ref-warn.php [new file with mode: 0644]
hphp/test/slow/class-ptr/class-ref-warn.php.expectf [new file with mode: 0644]
hphp/test/slow/class-ptr/class-ref-warn.php.norepo [new file with mode: 0644]
hphp/test/slow/class-ptr/class-ref-warn.php.opts [new file with mode: 0644]