This commit is contained in:
2021-04-14 18:14:27 +08:00
parent 91a2899840
commit d7894086ca
+2
View File
@@ -260,6 +260,7 @@ class Loader extends BaseObject
* @param string $filePath
* @param string|null $outPath
* @return $this
* @throws Exception
*/
private function each(string $filePath, ?string $outPath): static
{
@@ -274,6 +275,7 @@ class Loader extends BaseObject
foreach ($directory as $key => $value) {
$_tmp .= DIRECTORY_SEPARATOR . $value;
if (str_contains($_tmp, $outPath)) {
$this->addError($_tmp . '-->' . $value);
break;
}
$tree = $this->getTree($tree, $value);