From d98a671df5a3030c6696f3cb3a507db5903b3cff Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Tue, 5 Nov 2024 18:49:42 +0100 Subject: [PATCH] [BUGFIX] Fix potential notice #1776 --- Classes/Utility/ClassCacheManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/Utility/ClassCacheManager.php b/Classes/Utility/ClassCacheManager.php index c0211e239c..e08050a202 100644 --- a/Classes/Utility/ClassCacheManager.php +++ b/Classes/Utility/ClassCacheManager.php @@ -158,6 +158,9 @@ protected function parseSingleFile($filePath, $baseClass = false): string if ($baseClass) { $this->constructorLines['doc'] = explode("\n", $constructorInfo['doc'] ?? ''); } else { + if (!isset($this->constructorLines['doc'])) { + $this->constructorLines['doc'] = []; + } array_splice( $this->constructorLines['doc'], -1,