!7 PHP8时 执行 php think 时出错

Merge pull request !7 from DingYi/master
This commit is contained in:
Karson
2025-03-12 07:26:49 +00:00
committed by Gitee

View File

@@ -155,7 +155,7 @@ class Descriptor
$this->writeText('<comment>Options:</comment>', $options); $this->writeText('<comment>Options:</comment>', $options);
foreach ($definition->getOptions() as $option) { foreach ($definition->getOptions() as $option) {
if (strlen($option->getShortcut()) > 1) { if ($option->getShortcut() && strlen($option->getShortcut()) > 1) {
$laterOptions[] = $option; $laterOptions[] = $option;
continue; continue;
} }