Update: 2026-07-05 18:16:24

This commit is contained in:
Hamza-Ayed
2026-07-05 18:16:24 +03:00
parent 2b15386291
commit 9b0f0de1ce
+1 -1
View File
@@ -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 {