diff --git a/src/Php/Translator.php b/src/Php/Translator.php index 7df76082..b6508b69 100644 --- a/src/Php/Translator.php +++ b/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) {