Skip to content

Commit 81f5bba

Browse files
vesper8roshangautam
authored andcommitted
[fix] constant definition typo in service provider
The affected line was meant to fallback to the default db connection if the user does not specify one in his .env file But instead the default connection name was being passed to define() third parameter which is meant to set whether the constant should be case sensitive or not. PHP 7.3 added a deprecation "Declaration of case-insensitive constants is deprecated" which causes an error resolves #133
1 parent cd6a3db commit 81f5bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/TotemServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function register()
6464
}
6565

6666
if (! defined('TOTEM_DATABASE_CONNECTION')) {
67-
define('TOTEM_DATABASE_CONNECTION', config('totem.database_connection'), Schema::getConnection()->getName());
67+
define('TOTEM_DATABASE_CONNECTION', config('totem.database_connection', Schema::getConnection()->getName()));
6868
}
6969

7070
$this->commands([

0 commit comments

Comments
 (0)