-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup/fix context package #711
Cleanup/fix context package #711
Conversation
Creates a hidden `Scope` when called without `$parent`.
Resolves inconsistencies in case-insensitive handling.
Codecov Report
@@ Coverage Diff @@
## main #711 +/- ##
============================================
- Coverage 83.82% 82.78% -1.04%
- Complexity 1233 1241 +8
============================================
Files 138 139 +1
Lines 2980 3033 +53
============================================
+ Hits 2498 2511 +13
- Misses 482 522 +40
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Revert after introducing ContextInterface?
Removed:
Context::withValue()
: Semi-broken due to creation of hidden scopeContext::detach()
: Same functionality asScopeInterface::detach()
Context::attach()
: Same functionality asContext::activate()
Context::getValue()
: Can be removed? Users will use class-specific::fromContext()
/::getCurrrent()
methods instead of this method anyways?Changes:
Context
andContextKey
: Changed tofinal
to reduce scope / allow addition of new methods in the future without breaking backwards compatibility.ArrayAccessGetterSetter
: Resolves issues with case-insensitive keys and preserves casing as recommended by spec.