typed config

This commit is contained in:
robert dennis
2026-10-12 05:18:57 -04:00
parent 8810ae5a78
commit bb0e915fde
35 changed files with 94 additions and 91 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ declare(strict_types=1);
namespace Pterodactyl\Actions\Files;
use Illuminate\Support\Fluent;
use Pterodactyl\Contracts\Files\ReadsFileContents;
use Pterodactyl\Facades\Daemon;
use Pterodactyl\Models\Server;
use Pterodactyl\Support\JsonValueGuard;
final readonly class ReadFileContents implements ReadsFileContents
{
@@ -15,7 +15,7 @@ final readonly class ReadFileContents implements ReadsFileContents
{
return Daemon::server($server)->files()->getContent(
$path,
$maxBytes ?? JsonValueGuard::integer(config('pterodactyl.files.max_edit_size'))
$maxBytes ?? Fluent::make(config()->array('pterodactyl.files'))->integer('max_edit_size')
);
}
}