Skip to content

Commit 75d8b56

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents 56dba66 + 621edbe commit 75d8b56

20 files changed

Lines changed: 155 additions & 46 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@
4545

4646
$overrides = [
4747
'php_unit_data_provider_return_type' => true,
48+
'no_extra_blank_lines' => [
49+
'tokens' => [
50+
'attribute',
51+
'break',
52+
'case',
53+
'continue',
54+
'curly_brace_block',
55+
'default',
56+
'extra',
57+
'parenthesis_brace_block',
58+
'return',
59+
'square_brace_block',
60+
'switch',
61+
'throw',
62+
'use',
63+
],
64+
],
4865
];
4966

5067
$options = [

.php-cs-fixer.no-header.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@
3131

3232
$overrides = [
3333
'php_unit_data_provider_return_type' => true,
34+
'no_extra_blank_lines' => [
35+
'tokens' => [
36+
'attribute',
37+
'break',
38+
'case',
39+
'continue',
40+
'curly_brace_block',
41+
'default',
42+
'extra',
43+
'parenthesis_brace_block',
44+
'return',
45+
'square_brace_block',
46+
'switch',
47+
'throw',
48+
'use',
49+
],
50+
],
3451
];
3552

3653
$options = [

.php-cs-fixer.user-guide.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
])
2525
->notPath([
2626
'ci3sample/',
27-
'libraries/sessions/016.php',
2827
'database/query_builder/075.php',
28+
'libraries/sessions/016.php',
29+
'outgoing/response/031.php',
30+
'outgoing/response/032.php',
2931
]);
3032

3133
$overrides = [
@@ -34,6 +36,23 @@
3436
'no_unused_imports' => false,
3537
'class_attributes_separation' => false,
3638
'php_unit_data_provider_return_type' => true,
39+
'no_extra_blank_lines' => [
40+
'tokens' => [
41+
'attribute',
42+
'break',
43+
'case',
44+
'continue',
45+
'curly_brace_block',
46+
'default',
47+
'extra',
48+
'parenthesis_brace_block',
49+
'return',
50+
'square_brace_block',
51+
'switch',
52+
'throw',
53+
'use',
54+
],
55+
],
3756
];
3857

3958
$options = [

app/Config/Filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Filters extends BaseConfig
5555
*
5656
* If you use this, you should disable auto-routing because auto-routing
5757
* permits any HTTP method to access a controller. Accessing the controller
58-
* with a method you dont expect could bypass the filter.
58+
* with a method you don't expect could bypass the filter.
5959
*/
6060
public array $methods = [];
6161

app/Config/Kint.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
namespace Config;
44

55
use CodeIgniter\Config\BaseConfig;
6+
use Kint\Parser\ConstructablePluginInterface;
67
use Kint\Renderer\AbstractRenderer;
8+
use Kint\Renderer\Rich\TabPluginInterface;
9+
use Kint\Renderer\Rich\ValuePluginInterface;
710

811
/**
912
* --------------------------------------------------------------------------
@@ -23,7 +26,12 @@ class Kint extends BaseConfig
2326
|--------------------------------------------------------------------------
2427
*/
2528

29+
/**
30+
* @var array<int, ConstructablePluginInterface|string>
31+
* @phpstan-var list<class-string<ConstructablePluginInterface>|ConstructablePluginInterface>
32+
*/
2633
public $plugins;
34+
2735
public int $maxDepth = 6;
2836
public bool $displayCalledFrom = true;
2937
public bool $expanded = false;
@@ -36,7 +44,17 @@ class Kint extends BaseConfig
3644
public string $richTheme = 'aante-light.css';
3745
public bool $richFolder = false;
3846
public int $richSort = AbstractRenderer::SORT_FULL;
47+
48+
/**
49+
* @var array<string, string>
50+
* @phpstan-var array<string, class-string<ValuePluginInterface>>
51+
*/
3952
public $richObjectPlugins;
53+
54+
/**
55+
* @var array<string, string>
56+
* @phpstan-var array<string, class-string<TabPluginInterface>>
57+
*/
4058
public $richTabPlugins;
4159

4260
/*

app/Config/Logger.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,12 @@ class Logger extends BaseConfig
7474
* the handler on top and continuing down.
7575
*/
7676
public array $handlers = [
77-
7877
/*
7978
* --------------------------------------------------------------------
8079
* File Handler
8180
* --------------------------------------------------------------------
8281
*/
8382
FileHandler::class => [
84-
8583
// The log levels that this handler will handle.
8684
'handles' => [
8785
'critical',

app/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract class BaseController extends Controller
4444
// protected $session;
4545

4646
/**
47-
* Constructor.
47+
* @return void
4848
*/
4949
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
5050
{

app/Controllers/Home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Home extends BaseController
66
{
7-
public function index()
7+
public function index(): string
88
{
99
return view('welcome_message');
1010
}

changelogs/CHANGELOG_4.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ These changes increase security when handling uploaded files as the client can n
515515
- Add hex2bin prefix handling for encryption key [\#3307](https://github.com/codeigniter4/CodeIgniter4/pull/3307) ([michalsn](https://github.com/michalsn))
516516
- add break; in foreach at Time::getDst\(\) when daylightSaving set [\#3305](https://github.com/codeigniter4/CodeIgniter4/pull/3305) ([samsonasik](https://github.com/samsonasik))
517517
- New command: cache:clear [\#3304](https://github.com/codeigniter4/CodeIgniter4/pull/3304) ([lonnieezell](https://github.com/lonnieezell))
518-
- force\_https didnt force https [\#3302](https://github.com/codeigniter4/CodeIgniter4/pull/3302) ([colethorsen](https://github.com/colethorsen))
518+
- force\_https didn't force https [\#3302](https://github.com/codeigniter4/CodeIgniter4/pull/3302) ([colethorsen](https://github.com/colethorsen))
519519
- add test for CommandRunner::\_remap\(\) with empty first params [\#3301](https://github.com/codeigniter4/CodeIgniter4/pull/3301) ([samsonasik](https://github.com/samsonasik))
520520
- FieldData -\> add typeName field and length field [\#3299](https://github.com/codeigniter4/CodeIgniter4/pull/3299) ([devorama](https://github.com/devorama))
521521
- reduce repetitive getDefaultNamespace\(\) and controllerName\(\) function call in Router [\#3298](https://github.com/codeigniter4/CodeIgniter4/pull/3298) ([samsonasik](https://github.com/samsonasik))
@@ -2380,7 +2380,7 @@ These changes increase security when handling uploaded files as the client can n
23802380
- Database can't save connect instances because var "$group" default is NULL [\#466](https://github.com/codeigniter4/CodeIgniter4/issues/466)
23812381
- redirect\(\) issue [\#465](https://github.com/codeigniter4/CodeIgniter4/issues/465)
23822382
- Join not working in Query Builder [\#464](https://github.com/codeigniter4/CodeIgniter4/issues/464)
2383-
- If the controllers method's parameter has a default value , the program will show 500 error [\#461](https://github.com/codeigniter4/CodeIgniter4/issues/461)
2383+
- If the controller's method's parameter has a default value , the program will show 500 error [\#461](https://github.com/codeigniter4/CodeIgniter4/issues/461)
23842384
- Wrong ROOTPATH on console [\#460](https://github.com/codeigniter4/CodeIgniter4/issues/460)
23852385
- Rename "public" Folder Not Working [\#453](https://github.com/codeigniter4/CodeIgniter4/issues/453)
23862386
- Environment File [\#452](https://github.com/codeigniter4/CodeIgniter4/issues/452)

contributing/pull_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Before we look into how to contribute to CodeIgniter4, here are some guidelines.
2828
Your Pull Requests (PRs) need to meet our guidelines.
2929

3030
If your Pull Requests fail to pass these guidelines, they will be declined,
31-
and you will need to re-submit when youve made the changes.
31+
and you will need to re-submit when you've made the changes.
3232
This might sound a bit tough, but it is required for us to maintain the quality of the codebase.
3333

3434
### PHP Style

0 commit comments

Comments
 (0)