Skip to content

Commit 5d3d4b2

Browse files
committed
Release v4.3.4
1 parent e3821f9 commit 5d3d4b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+245
-173
lines changed

app/Config/App.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ class App extends BaseConfig
105105
*
106106
* The default timezone that will be used in your application to display
107107
* dates with the date helper, and can be retrieved through app_timezone()
108+
*
109+
* @see https://www.php.net/manual/en/timezones.php for list of timezones supported by PHP.
108110
*/
109111
public string $appTimezone = 'UTC';
110112

app/Config/Generators.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Generators extends BaseConfig
2626
* @var array<string, string>
2727
*/
2828
public array $views = [
29+
'make:cell' => 'CodeIgniter\Commands\Generators\Views\cell.tpl.php',
2930
'make:command' => 'CodeIgniter\Commands\Generators\Views\command.tpl.php',
3031
'make:config' => 'CodeIgniter\Commands\Generators\Views\config.tpl.php',
3132
'make:controller' => 'CodeIgniter\Commands\Generators\Views\controller.tpl.php',

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/API/ResponseTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use CodeIgniter\Format\FormatterInterface;
1515
use CodeIgniter\HTTP\IncomingRequest;
16+
use CodeIgniter\HTTP\RequestInterface;
1617
use CodeIgniter\HTTP\ResponseInterface;
1718
use Config\Services;
1819

@@ -21,7 +22,7 @@
2122
* consistent HTTP responses under a variety of common
2223
* situations when working as an API.
2324
*
24-
* @property IncomingRequest $request
25+
* @property RequestInterface $request
2526
* @property ResponseInterface $response
2627
*/
2728
trait ResponseTrait

system/BaseModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ abstract class BaseModel
6363
* The Database connection group that
6464
* should be instantiated.
6565
*
66-
* @var string
67-
* @phpstan-var non-empty-string
66+
* @var string|null
67+
* @phpstan-var non-empty-string|null
6868
*/
6969
protected $DBGroup;
7070

system/CLI/BaseCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ abstract public function run(array $params);
105105
/**
106106
* Can be used by a command to run other commands.
107107
*
108-
* @return mixed
108+
* @return int|void
109109
*
110110
* @throws ReflectionException
111111
*/
@@ -205,7 +205,7 @@ public function getPad(array $array, int $pad): int
205205
/**
206206
* Makes it simple to access our protected properties.
207207
*
208-
* @return mixed
208+
* @return array|Commands|LoggerInterface|string|null
209209
*/
210210
public function __get(string $key)
211211
{

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ public static function getURI(): string
915915
*
916916
* **IMPORTANT:** The index here is one-based instead of zero-based.
917917
*
918-
* @return mixed
918+
* @return string|null
919919
*/
920920
public static function getSegment(int $index)
921921
{

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.3';
50+
public const CI_VERSION = '4.3.4';
5151

5252
/**
5353
* App startup time.

system/Commands/Generators/CellGenerator.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ public function run(array $params)
8888
// Form the view name
8989
$segments = explode('\\', $this->qualifyClassName());
9090

91-
$view = array_pop($segments);
92-
$view = str_replace('Cell', '', decamelize($view));
93-
if (strpos($view, '_cell') === false) {
94-
$view .= '_cell';
95-
}
91+
$view = array_pop($segments);
92+
$view = decamelize($view);
9693
$segments[] = $view;
9794
$view = implode('\\', $segments);
9895

system/Commands/Generators/Views/model.tpl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class {class} extends Model
1010
protected $table = '{table}';
1111
protected $primaryKey = 'id';
1212
protected $useAutoIncrement = true;
13-
protected $insertID = 0;
1413
protected $returnType = {return};
1514
protected $useSoftDeletes = false;
1615
protected $protectFields = true;

0 commit comments

Comments
 (0)