fix(translator): 当接口和类定义均为空时提前返回

pull/1/head
韩天峰 7 months ago
parent 689b59bbda
commit 8e7d39d7fe
  1. 4
      src/Php/Translator.php

@ -292,6 +292,10 @@ class Translator extends Preprocessor
protected function genClassCeList(): void
{
if (empty($this->interfacesDefineInFile) and empty($this->classesDefineInFile)) {
return;
}
$sorter = new StringSort();
foreach ($this->interfacesDefineInFile as $interfaceDef) {

Loading…
Cancel
Save