diff --git a/backend/core/bootstrap.php b/backend/core/bootstrap.php index f965e28c..94950d13 100644 --- a/backend/core/bootstrap.php +++ b/backend/core/bootstrap.php @@ -10,7 +10,7 @@ declare(strict_types=1); // اجعل القيمة true لتفعيل عرض الأخطاء (التطوير)، أو false لإخفائها (التشغيل الفعلي) $debugMode = getenv('APP_DEBUG') === 'true'; -if ($debugMode) { +if ($debugMode || php_sapi_name() === 'cli') { error_reporting(E_ALL); ini_set('display_errors', '1'); } else {