Skip to content

Conversation

@StAmourD
Copy link
Contributor

Split from PR #220 by @cgalvarez

Context var list

  • Fixes the array length when the length property of a context variable is undefined. It happens to me with $GLOBALS['GLOBALS'], for example, which is shown as $GLOBALS['GLOBALS'] array[undefined], but its value is really Array[0].

  • Sorted: now all variables, keys (in case of array) and properties (in case of objects) are sorted in a natural, alphabetical ascending order, following the same behavior as PHP function ksort() (string keys first, numeric ones then).

  • Placed sort behind feature flag

@cchamplin
Copy link
Collaborator

LGTM, probably going to change the default for the flag to false, however so previous functionality stays the same by default.

@cchamplin cchamplin merged commit 52d7edc into gwomacks:master Dec 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants