Skip to content

Commit 448adc7

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents 700d8ba + 7811d2a commit 448adc7

File tree

11 files changed

+31
-30
lines changed

11 files changed

+31
-30
lines changed

public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* ---------------------------------------------------------------
4848
*
4949
* The CodeIgniter class contains the core functionality to make
50-
* the application run, and does all of the dirty work to get
50+
* the application run, and does all the dirty work to get
5151
* the pieces all working together.
5252
*/
5353

@@ -60,7 +60,7 @@
6060
*---------------------------------------------------------------
6161
* LAUNCH THE APPLICATION
6262
*---------------------------------------------------------------
63-
* Now that everything is setup, it's time to actually fire
63+
* Now that everything is set up, it's time to actually fire
6464
* up the engines and make this app do its thang.
6565
*/
6666

system/Config/BaseService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ class BaseService
173173
*
174174
* $key must be a name matching a service.
175175
*
176-
* @param mixed ...$params
176+
* @param array|bool|float|int|object|string|null ...$params
177177
*
178-
* @return mixed
178+
* @return object
179179
*/
180180
protected static function getSharedInstance(string $key, ...$params)
181181
{
@@ -239,7 +239,7 @@ public static function locator(bool $getShared = true)
239239
* Provides the ability to perform case-insensitive calling of service
240240
* names.
241241
*
242-
* @return mixed
242+
* @return object|null
243243
*/
244244
public static function __callStatic(string $name, array $arguments)
245245
{
@@ -296,7 +296,7 @@ public static function resetSingle(string $name)
296296
/**
297297
* Inject mock object for testing.
298298
*
299-
* @param mixed $mock
299+
* @param object $mock
300300
*/
301301
public static function injectMock(string $name, $mock)
302302
{
@@ -309,7 +309,7 @@ public static function injectMock(string $name, $mock)
309309
* looks for the service method in each, returning an instance of
310310
* the service, if available.
311311
*
312-
* @return mixed
312+
* @return object|null
313313
*
314314
* @deprecated
315315
*

system/Config/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Config
2323
* @param string $name Configuration name
2424
* @param bool $getShared Use shared instance
2525
*
26-
* @return mixed|null
26+
* @return object|null
2727
*/
2828
public static function get(string $name, bool $getShared = true)
2929
{

system/Database/BaseConnection.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ abstract protected function _close();
456456
/**
457457
* Create a persistent database connection.
458458
*
459-
* @return mixed
459+
* @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 mixed ...$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
@@ -1747,7 +1748,7 @@ protected function _enableForeignKeyChecks()
17471748
/**
17481749
* Accessor for properties if they exist.
17491750
*
1750-
* @return mixed
1751+
* @return array|bool|float|int|object|resource|string|null
17511752
*/
17521753
public function __get(string $key)
17531754
{

system/Database/ConnectionInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getConnection(?string $alias = null);
6262
/**
6363
* Select a specific database table to use.
6464
*
65-
* @return mixed
65+
* @return bool
6666
*/
6767
public function setDatabase(string $databaseName);
6868

@@ -98,7 +98,7 @@ public function getVersion(): string;
9898
* Should automatically handle different connections for read/write
9999
* queries if needed.
100100
*
101-
* @param mixed ...$binds
101+
* @param array|string|null $binds
102102
*
103103
* @return BaseResult|bool|Query
104104
* @phpstan-return BaseResult<TConnection, TResult>|bool|Query
@@ -127,7 +127,7 @@ public function table($tableName);
127127
/**
128128
* Returns the last query's statement object.
129129
*
130-
* @return mixed
130+
* @return Query
131131
*/
132132
public function getLastQuery();
133133

@@ -150,7 +150,7 @@ public function escape($str);
150150
*
151151
* @param array ...$params
152152
*
153-
* @return mixed
153+
* @return array|bool|float|int|object|resource|string|null
154154
*/
155155
public function callFunction(string $functionName, ...$params);
156156

system/Database/Postgre/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ protected function _transRollback(): bool
533533
*
534534
* Overrides BaseConnection::isWriteType, adding additional read query types.
535535
*
536-
* @param mixed $sql
536+
* @param string $sql
537537
*/
538538
public function isWriteType($sql): bool
539539
{

system/Database/SQLSRV/Connection.php

Lines changed: 4 additions & 4 deletions
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 mixed
47+
* @var false|string
4848
*/
4949
public $scrollable;
5050

@@ -440,7 +440,7 @@ public function affectedRows(): int
440440
/**
441441
* Select a specific database table to use.
442442
*
443-
* @return mixed
443+
* @return bool
444444
*/
445445
public function setDatabase(?string $databaseName = null)
446446
{
@@ -489,7 +489,7 @@ protected function execute(string $sql)
489489
/**
490490
* Returns the last error encountered by this connection.
491491
*
492-
* @return mixed
492+
* @return array<string, int|string>
493493
*
494494
* @deprecated Use `error()` instead.
495495
*/
@@ -550,7 +550,7 @@ public function getVersion(): string
550550
*
551551
* Overrides BaseConnection::isWriteType, adding additional read query types.
552552
*
553-
* @param mixed $sql
553+
* @param string $sql
554554
*/
555555
public function isWriteType($sql): bool
556556
{

system/Session/Handlers/BaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class BaseHandler implements SessionHandlerInterface
3434
/**
3535
* Lock placeholder.
3636
*
37-
* @var mixed
37+
* @var bool|string
3838
*/
3939
protected $lock = false;
4040

system/Session/Handlers/Database/PostgreHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function setSelect(BaseBuilder $builder)
3131
/**
3232
* Decodes column data
3333
*
34-
* @param mixed $data
34+
* @param string $data
3535
*
3636
* @return false|string
3737
*/

system/Session/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function setSelect(BaseBuilder $builder)
172172
/**
173173
* Decodes column data
174174
*
175-
* @param mixed $data
175+
* @param string $data
176176
*
177177
* @return false|string
178178
*/

0 commit comments

Comments
 (0)