From ff5663282f1efaa6c79d36760afca25ac25c16e6 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 9 Feb 2026 06:39:02 +0100 Subject: [PATCH] fixed search project root directory --- bin/dbmodel-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dbmodel-files b/bin/dbmodel-files index fd9d3a4..706c957 100644 --- a/bin/dbmodel-files +++ b/bin/dbmodel-files @@ -191,9 +191,9 @@ if ($suc) { function findProjectRoot(string $startDir): ?string { $dir = realpath($startDir); - + if (!$dir) return null; while ($dir && $dir !== dirname($dir)) { - if (file_exists($dir . '/composer.json')) { + if (is_file($dir . '/vendor/autoload.php')) { return $dir; } $dir = dirname($dir);