Fix #3289: Variable changed
fix for zendframework/zf2#3458
[#3461] CS fixes

- trailing whitespace
Merge branch 'hotfix/3461'

Backport #3461 to master
Merge commit 'refs/pull/3468/head' of github.com:zendframework/zf2 into hotfix/fix-variable
Merge pull request #3468 branch 'hotfix/fix-variable' Close
Added test for #3454.
Fix #3454.

The fix involves forcing a loop through the parent resources when the
current resource is 'TYPE_DENIED'. The loop stops when we are already at
the top-level resource.
Ensure privilege escalation is not possible.

With the previous version, a deny() on a lower-lever resource was not
inherited when on a higher-lever resource an allow() was given.

See the updated test for more an example.
Ensure all children inherit permissions.
Merge branch 'hotfix/3479'

Close #3479
Fixes #3454
[#3446] Allow generic traversable configuration to Captcha element
Merge pull request #3487 branch 'hotfix/allow-traversable-in-captcha'