We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d8aa0 commit 4428985Copy full SHA for 4428985
src/Http/SessionSection.php
@@ -18,9 +18,6 @@
18
*/
19
class SessionSection implements \IteratorAggregate, \ArrayAccess
20
{
21
- public bool $warnOnUndefined = false;
22
-
23
24
/**
25
* Do not call directly. Use Session::getSection().
26
@@ -113,10 +110,6 @@ public function &__get(string $name): mixed
113
110
trigger_error("Reading from \$session->$name is deprecated, use \$session->get('$name') instead", E_USER_DEPRECATED);
114
111
$this->session->autoStart(true);
115
112
$data = &$this->getData();
116
- if ($this->warnOnUndefined && !array_key_exists($name, $data ?? [])) {
117
- trigger_error("The variable '$name' does not exist in session section");
118
- }
119
120
return $data[$name];
121
}
122
0 commit comments