Update: 2026-07-05 18:16:24
This commit is contained in:
@@ -10,7 +10,7 @@ declare(strict_types=1);
|
|||||||
// اجعل القيمة true لتفعيل عرض الأخطاء (التطوير)، أو false لإخفائها (التشغيل الفعلي)
|
// اجعل القيمة true لتفعيل عرض الأخطاء (التطوير)، أو false لإخفائها (التشغيل الفعلي)
|
||||||
$debugMode = getenv('APP_DEBUG') === 'true';
|
$debugMode = getenv('APP_DEBUG') === 'true';
|
||||||
|
|
||||||
if ($debugMode) {
|
if ($debugMode || php_sapi_name() === 'cli') {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
ini_set('display_errors', '1');
|
ini_set('display_errors', '1');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user