-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Phalcon\Session\Bag: add of initialization for remove() #12647
Conversation
CHANGELOG.md
Outdated
@@ -1,3 +1,5 @@ | |||
- Fixed `Phalcon\Session\Bag::remove` to initialize the bag before removing a value | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add this to bottom of the [3.1.0]
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
83d6aa6
to
9bbcb17
Compare
@sergeyklay |
Hum... Looks the the build of |
Will be fixed after #12644 |
Ok, so do you need me to fix something other? |
I'll take a look later. Thank you for contributing. |
👍 |
Thank you. Merged to the 3.1.x |
Phalcon\Session\Bag
is restored by the session handler, the_data
property results not initialized andremove()
won't work properly.In raising this pull request, I confirm the following (please check boxes):
Small description of change: Initialization steps in
remove()
have been added.Steps to reproduce:
this calls initialize also on
Bag::remove
.Run tests:
vagrant@phalcon:~/cphalcon$ vendor/bin/codecept run tests/unit/Session/BagTest
Thanks