Skip to content

Commit

Permalink
[BUGFIX] Fix potential notice #1776
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Nov 5, 2024
1 parent ef840d3 commit d98a671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Utility/ClassCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d98a671

Please sign in to comment.