File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Illuminate/Database/Connectors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ public function connect(array $config)
38
38
*/
39
39
protected function parseDatabasePath (string $ path ): string
40
40
{
41
+ $ database = $ path ;
42
+
41
43
// SQLite supports "in-memory" databases that only last as long as the owning
42
44
// connection does. These are useful for tests or for short lifetime store
43
45
// querying. In-memory databases shall be anonymous (:memory:) or named.
@@ -54,7 +56,7 @@ protected function parseDatabasePath(string $path): string
54
56
// as the developer probably wants to know if the database exists and this
55
57
// SQLite driver will not throw any exception if it does not by default.
56
58
if ($ path === false ) {
57
- throw new SQLiteDatabaseDoesNotExistException ($ path );
59
+ throw new SQLiteDatabaseDoesNotExistException ($ database );
58
60
}
59
61
60
62
return $ path ;
You can’t perform that action at this time.
0 commit comments