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

[2.0.0] Session\Bag : Indirect modification of overloaded property #10095

Closed
ogarbe opened this issue Apr 20, 2015 · 4 comments
Closed

[2.0.0] Session\Bag : Indirect modification of overloaded property #10095

ogarbe opened this issue Apr 20, 2015 · 4 comments

Comments

@ogarbe
Copy link
Contributor

ogarbe commented Apr 20, 2015

i've got a lot of notices :
Indirect modification of overloaded property Phalcon\Session\Bag::$prestations has no effect

with a project updated from 1.3.4

@ogarbe
Copy link
Contributor Author

ogarbe commented May 13, 2015

it seems linked to #1895 the pb occurs while setting values like this

$sessionBag->prestations[$key] = $value;

method found for the moment :

$prestations = $sessionBag->prestations;
$prestations[$key] = $value;
$sessionBag->prestations = $prestations;

The previous code worked in 1.3.4

@ogarbe ogarbe changed the title [2.0.0] Session\Bag error while updating from 1.3.4 [2.0.0] Session\Bag : Indirect modification of overloaded property May 14, 2015
@ogarbe
Copy link
Contributor Author

ogarbe commented Aug 13, 2015

@andresgutierrez is it a normal feature ?

@andresgutierrez
Copy link
Contributor

Zephir does not support references so the value cannot be modified that way.

@ogarbe
Copy link
Contributor Author

ogarbe commented Aug 14, 2015

ok thanks.

@ogarbe ogarbe closed this as completed Aug 14, 2015
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

No branches or pull requests

2 participants