diff --git a/framework/core/src/Database/Migrator.php b/framework/core/src/Database/Migrator.php index c5830b7ed..11e7c50e4 100644 --- a/framework/core/src/Database/Migrator.php +++ b/framework/core/src/Database/Migrator.php @@ -252,7 +252,7 @@ class Migrator $statement = str_replace( 'db_prefix_', - $this->connection->getTablePrefix(), + $this->connection->getTablePrefix() ?? '', $statement ); $this->connection->statement($statement); diff --git a/framework/core/src/Install/DatabaseConfig.php b/framework/core/src/Install/DatabaseConfig.php index ee81eccfb..f093f76f2 100644 --- a/framework/core/src/Install/DatabaseConfig.php +++ b/framework/core/src/Install/DatabaseConfig.php @@ -21,7 +21,7 @@ class DatabaseConfig implements Arrayable private string $database, private readonly ?string $username, private readonly ?string $password, - private readonly string $prefix + private readonly ?string $prefix ) { $this->validate(); }