fixed empty docblock
This commit is contained in:
@ -272,8 +272,11 @@ class APIlite
|
|||||||
return null;
|
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);
|
$lines = explode("\n", $doc);
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
if (strpos($line, '@return') !== false) {
|
if (strpos($line, '@return') !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user