Skip to content

Commit

Permalink
Set type for database and language in module base
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Nov 10, 2024
1 parent f0c32ed commit 8c702a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/ModuleBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class ModuleBase implements ModuleInterface
*/
protected array $orders = [];

public function __construct(protected $db = null, protected $language = null)
public function __construct(protected ?\Aurora\Core\DB $db = null, protected ?\Aurora\Core\Language $language = null)
{
$this->db = $db;
$this->language = $language;
Expand Down
2 changes: 1 addition & 1 deletion core/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Aurora\Core;

final class DB
class DB
{
public const DEFAULT_OPTIONS = [
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
Expand Down
2 changes: 1 addition & 1 deletion core/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Aurora\Core;

final class Language
class Language
{
/**
* Current language code
Expand Down

0 comments on commit 8c702a0

Please sign in to comment.