Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed May 26, 2023
1 parent 06be5f8 commit 2217a81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Db/DriverArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use danog\MadelineProto\Settings\Database\DriverDatabaseAbstract;
use danog\MadelineProto\Settings\Database\Memory;
use danog\MadelineProto\Settings\Database\SerializerType;
use danog\MadelineProto\Settings\Database\SqlAbstract;
use danog\MadelineProto\Settings\DatabaseAbstract;
use IteratorAggregate;

Expand Down Expand Up @@ -81,7 +80,7 @@ public function isset(string|int $key): bool
return $this->offsetGet($key) !== null;
}

private function setSettings(SqlAbstract $settings): void
private function setSettings(DatabaseAbstract $settings): void
{
$this->dbSettings = $settings;
$this->setCacheTtl($settings->getCacheTtl());
Expand All @@ -93,7 +92,6 @@ public function __wakeup(): void
$this->setSettings($this->dbSettings);
}

/** @param SqlAbstract $settings */
public static function getInstance(string $table, DbType|array|null $previous, DatabaseAbstract $settings): static
{
/** @var MysqlArray|PostgresArray|RedisArray */
Expand Down

0 comments on commit 2217a81

Please sign in to comment.