From 808fd747fe19b3fa155983ea88f31157a09e6521 Mon Sep 17 00:00:00 2001 From: igor Date: Tue, 14 Apr 2026 12:33:33 +0200 Subject: [PATCH] fixed empty docblock --- src/APIlite.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/APIlite.php b/src/APIlite.php index 093fd1f..b6f320e 100644 --- a/src/APIlite.php +++ b/src/APIlite.php @@ -272,8 +272,11 @@ class APIlite return null; } - private function parseReturnDoc(string $doc): string|null + private function parseReturnDoc(?string $doc): string|null { + if (is_null($doc) || $doc === '') { + return null; + } $lines = explode("\n", $doc); foreach ($lines as $line) { if (strpos($line, '@return') !== false) {