File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -628,16 +628,16 @@ public function __get(string $key)
628628 //--------------------------------------------------------------------
629629
630630 /**
631- * Magic method to check for session variables
631+ * Magic method to check for session variables.
632+ * Different from has() in that it will validate 'session_id' as well.
633+ * Mostly used by internal PHP functions, users should stick to has()
632634 *
633635 * @param string $key Identifier of the session property to remove.
634636 *
635637 * @return bool
636638 */
637639 public function __isset (string $ key ): bool
638640 {
639- // Note: Keep this order the same, just in case somebody wants to
640- // use 'session_id' as a session data key, for whatever reason
641641 return isset ($ _SESSION [$ key ]) || ($ key === 'session_id ' );
642642 }
643643
You can’t perform that action at this time.
0 commit comments