Skip to content

Commit

Permalink
Initialize Generator::$context
Browse files Browse the repository at this point in the history
  • Loading branch information
brpauwels committed Jan 9, 2025
1 parent 2d36530 commit 27c36d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Generator
/**
* Allows Annotation classes to know the context of the annotation that is being processed.
*/
public static ?Context $context;
public static ?Context $context = null;

/** @var string Magic value to differentiate between null and undefined. */
public const UNDEFINED = '@OA\Generator::UNDEFINED🙈';
Expand Down

0 comments on commit 27c36d7

Please sign in to comment.