Skip to content

Commit 2db0178

Browse files
update
1 parent 97a99e9 commit 2db0178

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Capsule/CommandHelper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class CommandHelper
2424
*/
2525
public function __construct($conn = null)
2626
{
27+
if(class_exists('Tamedevelopers\Database\DB') && is_null($conn)){
28+
$conn = \Tamedevelopers\Database\DB::connection();
29+
}
30+
2731
$this->conn = $conn;
2832
}
2933

@@ -99,7 +103,7 @@ protected function force(): bool
99103
* Extracts all arguments available from command
100104
*
101105
* @param int|null $position
102-
* @return mixed
106+
* @return array
103107
*/
104108
protected function arguments($position = null)
105109
{

0 commit comments

Comments
 (0)