Skip to content

Commit 555b7ca

Browse files
committed
docs: fix types in doc comments
1 parent a2ecbd2 commit 555b7ca

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

system/Database/BaseConnection.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @property mixed $encrypt
3434
* @property array $failover
3535
* @property string $hostname
36-
* @property mixed $lastQuery
36+
* @property Query $lastQuery
3737
* @property string $password
3838
* @property bool $pConnect
3939
* @property int|string $port
@@ -154,7 +154,7 @@ abstract class BaseConnection implements ConnectionInterface
154154
/**
155155
* Encryption flag/data
156156
*
157-
* @var mixed
157+
* @var array|bool
158158
*/
159159
protected $encrypt = false;
160160

@@ -185,7 +185,7 @@ abstract class BaseConnection implements ConnectionInterface
185185
* The last query object that was executed
186186
* on this connection.
187187
*
188-
* @var mixed
188+
* @var Query
189189
*/
190190
protected $lastQuery;
191191

@@ -932,7 +932,7 @@ public function prepare(Closure $func, array $options = [])
932932
/**
933933
* Returns the last query's statement object.
934934
*
935-
* @return mixed
935+
* @return Query
936936
*/
937937
public function getLastQuery()
938938
{
@@ -1149,9 +1149,10 @@ private function protectDotItem(string $item, string $alias, bool $protectIdenti
11491149
*
11501150
* This function escapes column and table names
11511151
*
1152-
* @param mixed $item
1152+
* @param array|string $item
11531153
*
1154-
* @return mixed
1154+
* @return array|string
1155+
* @phpstan-return ($item is array ? array : string)
11551156
*/
11561157
public function escapeIdentifiers($item)
11571158
{

0 commit comments

Comments
 (0)