git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92b4a3
)
fix setting values to deprecated response property `cookies`
author
gggeek
<giunta.gaetano@gmail.com>
Fri, 27 Jan 2023 10:04:56 +0000
(10:04 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Fri, 27 Jan 2023 10:04:56 +0000
(10:04 +0000)
src/Response.php
patch
|
blob
|
history
diff --git
a/src/Response.php
b/src/Response.php
index
b4ab39b
..
210f8b5
100644
(file)
--- a/
src/Response.php
+++ b/
src/Response.php
@@
-191,7
+191,8
@@
class Response
// BC layer
- public function __get($name)
+ // we have to make this return by ref in order to allow calls such as `$resp->_cookies['name'] = ['value' => 'something'];`
+ public function &__get($name)
{
//trigger_error('getting property Response::' . $name . ' is deprecated', E_USER_DEPRECATED);