Skip to content

Commit 5ef5579

Browse files
committed
docs: fix some type.
1 parent cd3d385 commit 5ef5579

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

system/Database/BaseConnection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ abstract protected function _close();
457457
* Create a persistent database connection.
458458
*
459459
* @return false|object|resource
460+
* @phpstan-return false|TConnection
460461
*/
461462
public function persistentConnect()
462463
{
@@ -558,7 +559,7 @@ abstract protected function execute(string $sql);
558559
* Should automatically handle different connections for read/write
559560
* queries if needed.
560561
*
561-
* @param array|string|null ...$binds
562+
* @param array|string|null $binds
562563
*
563564
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
564565
* @phpstan-return BaseResult<TConnection, TResult>|bool|Query

system/Database/ConnectionInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace CodeIgniter\Database;
1313

1414
/**
15-
* @property Query $lastQuery
16-
*
1715
* @template TConnection of object|resource
1816
* @template TResult of object|resource
1917
*/
@@ -100,7 +98,7 @@ public function getVersion(): string;
10098
* Should automatically handle different connections for read/write
10199
* queries if needed.
102100
*
103-
* @param array|string|null ...$binds
101+
* @param array|string|null $binds
104102
*
105103
* @return BaseResult|bool|Query
106104
* @phpstan-return BaseResult<TConnection, TResult>|bool|Query

system/Database/SQLSRV/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Connection extends BaseConnection
4444
* FALSE or SQLSRV_CURSOR_FORWARD would increase performance,
4545
* but would disable num_rows() (and possibly insert_id())
4646
*
47-
* @var bool|string
47+
* @var false|string
4848
*/
4949
public $scrollable;
5050

0 commit comments

Comments
 (0)