Skip to content

Commit f7ae313

Browse files
authored
Update Debugger.php
При удалении папки /core/vendor и последующем composer update происходило вот такое: Fatal error: Declaration of EvolutionCMS\Tracy\Debugger::enable($mode = null, ?string $logDirectory = null, $email = null): void must be compatible with Tracy\Debugger::enable($mode = null, $logDirectory = null, $email = null) in /home/ Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255 Это было на php8, на 7.4 не уверен. В общем, лечение именно такое, убираем ?
1 parent a535584 commit f7ae313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Tracy/Debugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static function enable($mode = null, string $logDirectory = null, $email
1111
set_error_handler([__CLASS__, 'errorHandler']);
1212
}
1313

14-
public static function errorHandler(int $severity, string $message, string $file, int $line, ?array $context = []): ?bool
14+
public static function errorHandler(int $severity, string $message, string $file, int $line, ?array $context = []): bool
1515
{
1616
if (!empty(evolutionCMS()->currentSnippet)) {
1717
$file = 'Snippet: ' . evolutionCMS()->currentSnippet;

0 commit comments

Comments
 (0)