Skip to content
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

[BUG]: Phalcon\Session\Bag cannot be extends #15584

Closed
zak-wojtek77 opened this issue Jul 10, 2021 · 2 comments
Closed

[BUG]: Phalcon\Session\Bag cannot be extends #15584

zak-wojtek77 opened this issue Jul 10, 2021 · 2 comments
Labels
bug A bug report status: unverified Unverified

Comments

@zak-wojtek77
Copy link

Describe the bug
Phalcon\Session\Bag cannot be extends

To Reproduce

class Foo extends Phalcon\Session\Bag
{
}
$foo = new Foo('bar');

Expected behavior
After running this code has an error:

Fatal error: Uncaught RuntimeException: Trying to call method set on a non-object
Stack trace:
#0 [internal function]: Phalcon\Session\Bag->set('name', 'bar')
#1 [internal function]: Phalcon\Collection->__set('name', 'bar')
#2 test.php(14): Phalcon\Session\Bag->__construct('bar')
#3 {main}

Details

  • Phalcon version: 4.0.6
  • PHP Version: 7.4
  • Operating System: Linux Debian
  • Installation type: Compiling from source
  • Zephir version (if any):
  • Server: Nginx
  • Other related info (Database, table schema): MariaDB
@zak-wojtek77 zak-wojtek77 added bug A bug report status: unverified Unverified labels Jul 10, 2021
@wurst-hans
Copy link

No problem here with version 4.1.0. Try to upgrade your Phalcon version.

@zak-wojtek77
Copy link
Author

Really it works in 4.1.0. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: unverified Unverified
Projects
Archived in project
Development

No branches or pull requests

2 participants