Unlike JavaScript, which distinguishes between indexed arrays and objects, PHP uses the same internal structure
for both indexed and associative arrays. As a result, when the API returns an empty PHP array, it is interpreted
in JavaScript as an empty array ([]), not an empty object ({}).
This typically occurs when an API module accepts a **prop= query parameter and the user explicitly overrides
its default value by specifying it as empty.
Represents an empty PHP array (
[]
).Unlike JavaScript, which distinguishes between indexed arrays and objects, PHP uses the same internal structure for both indexed and associative arrays. As a result, when the API returns an empty PHP array, it is interpreted in JavaScript as an empty array (
[]
), not an empty object ({}
).This typically occurs when an API module accepts a
**prop=
query parameter and the user explicitly overrides its default value by specifying it as empty.See https://phabricator.wikimedia.org/T395188.