Add notices for ArrayAccess use.
commitafc1b09947afe7ec10f4192ce775fa65ee7c8e43
authorAlexey Toptygin <alexeyt@fb.com>
Mon, 5 Nov 2018 19:58:22 +0000 (5 11:58 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 5 Nov 2018 20:02:55 +0000 (5 12:02 -0800)
tree1c1a71b92770ff24a59157eab64d8efc184940bd
parent0d42378ee1434ca36e9213b2274dc1a2509a0371
Add notices for ArrayAccess use.

Summary: Add a flag that causes notices when an object that's ArrayAccess but not a collection is accessed with square brackets.

Reviewed By: ricklavoie

Differential Revision: D12914682

fbshipit-source-id: 3b80de08017a1d703a6b0f7c08acfce9a9303232
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/member-operations.cpp
hphp/test/slow/array_access/notice.php [new file with mode: 0644]
hphp/test/slow/array_access/notice.php.expectf [new file with mode: 0644]
hphp/test/slow/array_access/notice.php.opts [new file with mode: 0644]