HomePhabricator

[WIP] Introduce QueryInfo
948d136243daUnpublished

Authored by Legoktm on Sep 8 2018, 4:00 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

[WIP] Introduce QueryInfo

QueryInfo is a container for arrays that hold
tables/fields/conds/options/join_conds for building up database queries.
The main purpose of introducing a typed object is so that
phan-taint-check-plugin can properly detect and analyze these kinds of
query builders rather than hardcoding the function name of getQueryInfo,
which isn't always used.

Since it implements ArrayAccess, it should be fully backwards-compatible
except for is_array()/type checks.

Bug: T203712
Change-Id: I4a2ed64349dd883f438f1a496e5970a3134faae6

Details

Committed
LegoktmSep 12 2018, 12:33 AM
ChangeId
I4a2ed64349dd883f438f1a496e5970a3134faae6

Commit No Longer Exists

This commit no longer exists in the repository.