Skip to content

Commit

Permalink
fix: laragram config loader and $polling_allowed_updates null type
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHkrg committed Oct 19, 2024
1 parent b77b858 commit 500b011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ trait Updates
private float $polling_sleep_time;
private int $polling_timeout;
private int $polling_limit;
private array $polling_allowed_updates;
private array|null $polling_allowed_updates;

public function __construct()
{
$getConfigValue = function ($key, $default, $file) {
return class_exists("LaraGram\\Config\\Repository")
? config()->get("$file.$key") ?? $default
? config("$file.$key") ?? $default
: ($_ENV[$key] ?? $default);
};

Expand Down

0 comments on commit 500b011

Please sign in to comment.