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

Initialize Generator::$context #1692

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

brpauwels
Copy link
Contributor

@brpauwels brpauwels commented Jan 9, 2025

Initialize Generator::$context to avoid a Typed static property OpenApi\Generator::$context must not be accessed before initialization error when Generator::$context is called from the AbstractAnnotation constructor (line 101).

Fixes #1693

@DrIsmaileAbdallah
Copy link

i have same error this morning ! thank you @brpauwels !

@DerManoMann DerManoMann merged commit c6956de into zircote:master Jan 9, 2025
20 checks passed
@DerManoMann
Copy link
Collaborator

Thanks @brpauwels

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.

Typed static property OpenApi\Generator::$context must not be accessed before initialization
3 participants