From 27c36d730e7535be395c36479e7a8c67bbcc0337 Mon Sep 17 00:00:00 2001 From: Bram Pauwels Date: Thu, 9 Jan 2025 09:40:47 +0100 Subject: [PATCH] Initialize Generator::$context --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 160dbab35..8750dc8e2 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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🙈';