Skip to content

Commit b1e5c64

Browse files
committed
Release v4.3.1
1 parent f83c211 commit b1e5c64

File tree

19 files changed

+120
-28
lines changed

19 files changed

+120
-28
lines changed

app/Config/Email.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class Email extends BaseConfig
88
{
9-
public string $fromEmail;
10-
public string $fromName;
11-
public string $recipients;
9+
public string $fromEmail = '';
10+
public string $fromName = '';
11+
public string $recipients = '';
1212

1313
/**
1414
* The "user agent"
@@ -28,17 +28,17 @@ class Email extends BaseConfig
2828
/**
2929
* SMTP Server Address
3030
*/
31-
public string $SMTPHost;
31+
public string $SMTPHost = '';
3232

3333
/**
3434
* SMTP Username
3535
*/
36-
public string $SMTPUser;
36+
public string $SMTPUser = '';
3737

3838
/**
3939
* SMTP Password
4040
*/
41-
public string $SMTPPass;
41+
public string $SMTPPass = '';
4242

4343
/**
4444
* SMTP Port

system/Autoloader/Autoloader.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,14 @@ private function loadComposerNamespaces(ClassLoader $composer, array $composerPa
373373
unset($namespacePaths['CodeIgniter\\']);
374374
}
375375

376+
if (! method_exists(InstalledVersions::class, 'getAllRawData')) {
377+
throw new RuntimeException(
378+
'Your Composer version is too old.'
379+
. ' Please update Composer (run `composer self-update`) to v2.0.14 or later'
380+
. ' and remove your vendor/ directory, and run `composer update`.'
381+
);
382+
}
383+
// This method requires Composer 2.0.14 or later.
376384
$packageList = InstalledVersions::getAllRawData()[0]['versions'];
377385

378386
// Check config for $composerPackages.

system/Cache/Handlers/MemcachedHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public function initialize()
124124
*/
125125
public function get(string $key)
126126
{
127-
$key = static::validateKey($key, $this->prefix);
127+
$data = [];
128+
$key = static::validateKey($key, $this->prefix);
128129

129130
if ($this->memcached instanceof Memcached) {
130131
$data = $this->memcached->get($key);

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CodeIgniter
4747
/**
4848
* The current version of CodeIgniter Framework
4949
*/
50-
public const CI_VERSION = '4.3.0';
50+
public const CI_VERSION = '4.3.1';
5151

5252
/**
5353
* App startup time.

system/Commands/Generators/MigrationGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public function run(array $params)
9797
*/
9898
protected function prepare(string $class): string
9999
{
100+
$data = [];
100101
$data['session'] = false;
101102

102103
if ($this->getOption('session')) {

system/Commands/Generators/SessionMigrationGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function run(array $params)
8989
*/
9090
protected function prepare(string $class): string
9191
{
92+
$data = [];
9293
$data['session'] = true;
9394
$data['table'] = $this->getOption('t');
9495
$data['DBGroup'] = $this->getOption('g');

system/Commands/Utilities/FilterCheck.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class FilterCheck extends BaseCommand
7272
*/
7373
public function run(array $params)
7474
{
75+
$tbody = [];
7576
if (! isset($params[0], $params[1])) {
7677
CLI::error('You must specify a HTTP verb and a route.');
7778
CLI::write(' Usage: ' . $this->usage);

system/Database/BaseBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@ public function orHaving($key, $value = null, ?bool $escape = null)
14231423
*/
14241424
public function orderBy(string $orderBy, string $direction = '', ?bool $escape = null)
14251425
{
1426+
$qbOrderBy = [];
14261427
if (empty($orderBy)) {
14271428
return $this;
14281429
}
@@ -3274,7 +3275,7 @@ protected function isLiteral(string $str): bool
32743275
*
32753276
* @return $this
32763277
*/
3277-
public function resetQueryAsData()
3278+
public function resetQuery()
32783279
{
32793280
$this->resetSelect();
32803281
$this->resetWrite();
@@ -3456,7 +3457,7 @@ protected function setBind(string $key, $value = null, bool $escape = true): str
34563457
*/
34573458
protected function cleanClone()
34583459
{
3459-
return (clone $this)->from([], true)->resetQueryAsData();
3460+
return (clone $this)->from([], true)->resetQuery();
34603461
}
34613462

34623463
/**

system/Database/SQLSRV/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ public function getPlatform(): string
529529
*/
530530
public function getVersion(): string
531531
{
532+
$info = [];
532533
if (isset($this->dataCache['version'])) {
533534
return $this->dataCache['version'];
534535
}

system/Debug/Exceptions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac
8080
$this->response = $response;
8181

8282
// workaround for upgraded users
83+
// This causes "Deprecated: Creation of dynamic property" in PHP 8.2.
84+
// @TODO remove this after dropping PHP 8.1 support.
8385
if (! isset($this->config->sensitiveDataInTrace)) {
8486
$this->config->sensitiveDataInTrace = [];
8587
}

0 commit comments

Comments
 (0)