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

UserStorage: allow sessionSection to be null #243

Open
wants to merge 1 commit into
base: v3.3
Choose a base branch
from

Conversation

kostirez1
Copy link

  • bug fix
  • BC break? no
  • doc PR: not required

Broken since 3.3.0 (added property typehints) due to the code relying on $sessionSection property being nullable and preinitialized to null during creation. Currently failing on Error: Typed property Nette\Http\UserStorage::$sessionSection must not be accessed before initialization when calling getSessionSection()

This commit reverts $sessionSection to the same behavior it had before adding the native typehint.

Branch v3.3 is the only affected one, master and v4.0 no longer contain this deprecated class (removed deprecated stuff).

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

Successfully merging this pull request may close these issues.

1 participant