Update code for php 8.5 compatibility

This commit is contained in:
DariusIII
2026-01-22 12:44:59 +01:00
parent ce1e1a2485
commit d0aa6f23ab
26 changed files with 94 additions and 75 deletions
+5 -4
View File
@@ -2,6 +2,7 @@
namespace App\Support;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Process;
@@ -63,10 +64,10 @@ class UpdatePerformanceHelper
public static function clearAllCaches(): array
{
$cacheOperations = [
'config' => fn () => \Artisan::call('config:clear'),
'route' => fn () => \Artisan::call('route:clear'),
'view' => fn () => \Artisan::call('view:clear'),
'cache' => fn () => \Artisan::call('cache:clear'),
'config' => fn () => Artisan::call('config:clear'),
'route' => fn () => Artisan::call('route:clear'),
'view' => fn () => Artisan::call('view:clear'),
'cache' => fn () => Artisan::call('cache:clear'),
'opcache' => fn () => function_exists('opcache_reset') ? opcache_reset() : true,
];