Skip to content

Commit 63c554b

Browse files
committed
Release v4.2.11
1 parent 41b1c37 commit 63c554b

File tree

9 files changed

+34
-29
lines changed

9 files changed

+34
-29
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
## What is CodeIgniter?
44

55
CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure.
6-
More information can be found at the [official site](http://codeigniter.com).
6+
More information can be found at the [official site](https://codeigniter.com).
77

88
This repository holds a composer-installable app starter.
99
It has been built from the
1010
[development repository](https://github.com/codeigniter4/CodeIgniter4).
1111

12-
More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums.
12+
More information about the plans for version 4 can be found in [CodeIgniter 4](https://forum.codeigniter.com/forumdisplay.php?fid=28) on the forums.
1313

14-
The user guide corresponding to this version of the framework can be found
14+
The user guide corresponding to the latest version of the framework can be found
1515
[here](https://codeigniter4.github.io/userguide/).
1616

1717
## Installation & updates
@@ -53,11 +53,10 @@ Problems with it can be raised on our forum, or as issues in the main repository
5353
PHP version 7.4 or higher is required, with the following extensions installed:
5454

5555
- [intl](http://php.net/manual/en/intl.requirements.php)
56-
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
56+
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
5757

5858
Additionally, make sure that the following extensions are enabled in your PHP:
5959

6060
- json (enabled by default - don't turn it off)
61-
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
62-
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
63-
- xml (enabled by default - don't turn it off)
61+
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
62+
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

app/Config/App.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,18 +332,21 @@ class App extends BaseConfig
332332
*
333333
* If your server is behind a reverse proxy, you must whitelist the proxy
334334
* IP addresses from which CodeIgniter should trust headers such as
335-
* HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
335+
* X-Forwarded-For or Client-IP in order to properly identify
336336
* the visitor's IP address.
337337
*
338-
* You can use both an array or a comma-separated list of proxy addresses,
339-
* as well as specifying whole subnets. Here are a few examples:
338+
* You need to set a proxy IP address or IP address with subnets and
339+
* the HTTP header for the client IP address.
340340
*
341-
* Comma-separated: '10.0.1.200,192.168.5.0/24'
342-
* Array: ['10.0.1.200', '192.168.5.0/24']
341+
* Here are some examples:
342+
* [
343+
* '10.0.1.200' => 'X-Forwarded-For',
344+
* '192.168.5.0/24' => 'X-Real-IP',
345+
* ]
343346
*
344-
* @var string|string[]
347+
* @var array<string, string>
345348
*/
346-
public $proxyIPs = '';
349+
public $proxyIPs = [];
347350

348351
/**
349352
* --------------------------------------------------------------------------

app/Config/Autoload.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ class Autoload extends AutoloadConfig
3434
*```
3535
* $psr4 = [
3636
* 'CodeIgniter' => SYSTEMPATH,
37-
* 'App' => APPPATH
37+
* 'App' => APPPATH
3838
* ];
3939
*```
4040
*
41-
* @var array<string, string>
41+
* @var array<string, array<int, string>|string>
42+
* @phpstan-var array<string, string|list<string>>
4243
*/
4344
public $psr4 = [
4445
APP_NAMESPACE => APPPATH, // For custom app namespace
@@ -76,8 +77,8 @@ class Autoload extends AutoloadConfig
7677
*
7778
* Prototype:
7879
* ```
79-
* $files = [
80-
* '/path/to/my/file.php',
80+
* $files = [
81+
* '/path/to/my/file.php',
8182
* ];
8283
* ```
8384
*

app/Config/Logger.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ class Logger extends BaseConfig
141141
* Uncomment this block to use it.
142142
*/
143143
// 'CodeIgniter\Log\Handlers\ErrorlogHandler' => [
144-
// /* The log levels this handler can handle. */
145-
// 'handles' => ['critical', 'alert', 'emergency', 'debug', 'error', 'info', 'notice', 'warning'],
144+
// /* The log levels this handler can handle. */
145+
// 'handles' => ['critical', 'alert', 'emergency', 'debug', 'error', 'info', 'notice', 'warning'],
146146
//
147-
// /*
148-
// * The message type where the error should go. Can be 0 or 4, or use the
149-
// * class constants: `ErrorlogHandler::TYPE_OS` (0) or `ErrorlogHandler::TYPE_SAPI` (4)
150-
// */
151-
// 'messageType' => 0,
147+
// /*
148+
// * The message type where the error should go. Can be 0 or 4, or use the
149+
// * class constants: `ErrorlogHandler::TYPE_OS` (0) or `ErrorlogHandler::TYPE_SAPI` (4)
150+
// */
151+
// 'messageType' => 0,
152152
// ],
153153
];
154154
}

app/Config/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Toolbar extends BaseConfig
4949
* Collect Var Data
5050
* --------------------------------------------------------------------------
5151
*
52-
* If set to false var data from the views will not be colleted. Usefull to
52+
* If set to false var data from the views will not be colleted. Useful to
5353
* avoid high memory usage when there are lots of data passed to the view.
5454
*
5555
* @var bool

app/Views/welcome_message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
<p>CodeIgniter is a community-developed open source project, with several
271271
venues for the community members to gather and exchange ideas. View all
272272
the threads on <a href="https://forum.codeigniter.com/"
273-
target="_blank">CodeIgniter's forum</a>, or <a href="https://codeigniterchat.slack.com/"
273+
target="_blank">CodeIgniter's forum</a>, or <a href="https://join.slack.com/t/codeigniterchat/shared_invite/zt-rl30zw00-obL1Hr1q1ATvkzVkFp8S0Q"
274274
target="_blank">chat on Slack</a> !</p>
275275

276276
<h2>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"test": "phpunit"
3131
},
3232
"support": {
33-
"forum": "http://forum.codeigniter.com/",
33+
"forum": "https://forum.codeigniter.com/",
3434
"source": "https://github.com/codeigniter4/CodeIgniter4",
3535
"slack": "https://codeigniterchat.slack.com"
3636
}

preload.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
* See https://www.php.net/manual/en/opcache.preloading.php
1717
*
1818
* How to Use:
19-
* 1. Set preload::$paths.
19+
* 0. Copy this file to your project root folder.
20+
* 1. Set the $paths property of the preload class below.
2021
* 2. Set opcache.preload in php.ini.
2122
* php.ini:
2223
* opcache.preload=/path/to/preload.php

tests/database/ExampleDatabaseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function testSoftDeleteLeavesRow()
3131
$this->setPrivateProperty($model, 'useSoftDeletes', true);
3232
$this->setPrivateProperty($model, 'tempUseSoftDeletes', true);
3333

34+
/** @var stdClass $object */
3435
$object = $model->first();
3536
$model->delete($object->id);
3637

0 commit comments

Comments
 (0)