From 956b0547e839d4cf6d2f687bd26e77a99e6c8413 Mon Sep 17 00:00:00 2001 From: 1sonhador <1sonhador@gmail.com> Date: Tue, 28 Oct 2025 16:26:34 +0000 Subject: [PATCH] fix: Resolve PHP syntax errors and deprecation warnings - Fix syntax error in coming/soon.php (missing closing parenthesis) - Fix JavaScript syntax errors in coming/soon.php - Fix nullable parameter deprecation warnings in ErrorLog.php - Fix nullable parameter deprecation warnings in LandingTemplateModel.php - All PHP files now pass syntax validation - No more deprecated parameter warnings --- .../Models/LandingTemplateModel.php | 2 +- .../ErrorMonitoring/Models/ErrorLog.php | 6 +-- crm/Modules/Views/coming/soon.php | 53 +++++++++---------- 3 files changed, 30 insertions(+), 31 deletions(-) diff --git a/crm/Modules/Advertising/Models/LandingTemplateModel.php b/crm/Modules/Advertising/Models/LandingTemplateModel.php index 1fdde7c..8f0e048 100644 --- a/crm/Modules/Advertising/Models/LandingTemplateModel.php +++ b/crm/Modules/Advertising/Models/LandingTemplateModel.php @@ -216,7 +216,7 @@ class LandingTemplateModel /** * Gerar URL da imagem para Script Builder */ - public function generateImageUrl(string $brandSlug, string $templateType, string $countryCode, string $device = null, string $size = null): string + public function generateImageUrl(string $brandSlug, string $templateType, string $countryCode, ?string $device = null, ?string $size = null): string { $baseUrl = 'https://js.pmx.bet/images/'; diff --git a/crm/Modules/ErrorMonitoring/Models/ErrorLog.php b/crm/Modules/ErrorMonitoring/Models/ErrorLog.php index c689cfa..40fe3bc 100644 --- a/crm/Modules/ErrorMonitoring/Models/ErrorLog.php +++ b/crm/Modules/ErrorMonitoring/Models/ErrorLog.php @@ -42,7 +42,7 @@ class ErrorLog /** * Marcar erro como resolvido */ - public function resolveError(int $id, string $resolutionNotes = null): bool + public function resolveError(int $id, ?string $resolutionNotes = null): bool { try { $sql = "UPDATE error_logs SET status = 'resolved', resolved_at = NOW(), resolution_notes = ? WHERE id = ?"; @@ -56,7 +56,7 @@ class ErrorLog /** * Marcar todos os erros como resolvidos */ - public function resolveAllErrors(string $resolutionNotes = null): bool + public function resolveAllErrors(?string $resolutionNotes = null): bool { try { $sql = "UPDATE error_logs SET status = 'resolved', resolved_at = NOW(), resolution_notes = ? WHERE status = 'open'"; @@ -70,7 +70,7 @@ class ErrorLog /** * Marcar erro como ignorado */ - public function ignoreError(int $id, string $resolutionNotes = null): bool + public function ignoreError(int $id, ?string $resolutionNotes = null): bool { try { $sql = "UPDATE error_logs SET status = 'ignored', resolved_at = NOW(), resolution_notes = ? WHERE id = ?"; diff --git a/crm/Modules/Views/coming/soon.php b/crm/Modules/Views/coming/soon.php index 807eafb..8f10fa4 100644 --- a/crm/Modules/Views/coming/soon.php +++ b/crm/Modules/Views/coming/soon.php @@ -1,19 +1,17 @@ - $page_title, - 'description' => $page_description, - 'page_content' => function() { -?> - + $page_title, + 'description' => $page_description, + 'page_content' => function() { +?>
© - . + .