Skip to content

Commit 399ebf1

Browse files
committed
Merge branch '4.8' into feature/issue-9070-rawsql-join-table
2 parents f3ef499 + ec777a9 commit 399ebf1

90 files changed

Lines changed: 3245 additions & 217 deletions

File tree

Some content is hidden

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

‎.github/carson.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ subscribers:
1313
settings:
1414
auto-labeler:
1515
sync_labels: true
16+
sync_exempt:
17+
- enhancement
1618
rules:
1719
- label: '4.8' # @todo change value whenever the next minor version is changed
1820
base_branch: ['^4\.8$']
@@ -66,7 +68,7 @@ settings:
6668
pr-title-linter:
6769
name: 'Carson / pr-title-linter'
6870
rules:
69-
- pattern: '^(\[\d+\.\d+\]\s{1})?(feat|fix|chore|docs|perf|refactor|style|test|config|revert)(\([\-.@:`a-zA-Z0-9]+\))?!?:\s{1}\S.+\S|Prep for \d\.\d\.\d release|\d\.\d\.\d (Ready|Merge) code$'
71+
- pattern: '^(?:(?:\[\d+\.\d+\] )?(?:feat|fix|chore|docs|perf|refactor|style|test|config|revert)(?:\([\-.@:`a-zA-Z0-9]+\))?!?: \S.+\S|Prep for \d+\.\d+\.\d+ release|\d+\.\d+\.\d+ (?:Ready|Merge) code)$'
7072
description: 'PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test, config, revert) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion.'
7173
level: error
7274
signed-commits:

‎.github/workflows/run-carson.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ permissions: {}
2828

2929
jobs:
3030
carson:
31+
if: github.repository == 'codeigniter4/CodeIgniter4'
3132
runs-on: ubuntu-24.04
3233
steps:
3334
- name: Run Carson

‎.github/workflows/verify-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
php-version: '8.2'
7777
tools: composer
7878
extensions: intl, gd
79-
coverage: none
79+
coverage: xdebug
8080

8181
- name: Wait for Packagist to serve the new framework version
8282
run: |

‎CHANGELOG.md‎

Lines changed: 154 additions & 0 deletions
Large diffs are not rendered by default.

‎app/Config/View.php‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class View extends BaseView
3030
* { title|esc(js) }
3131
* { created_on|date(Y-m-d)|esc(attr) }
3232
*
33-
* @var array<string, (callable(mixed): mixed)&string>
33+
* @var array<string, callable(mixed): mixed>
3434
*/
3535
public $filters = [];
3636

@@ -43,6 +43,14 @@ class View extends BaseView
4343
*/
4444
public $plugins = [];
4545

46+
/**
47+
* When true, Parser conditionals may only contain variables, literals,
48+
* arithmetic, comparison and logical operators, and parentheses. Enable
49+
* this when less-trusted users can edit Parser templates. Can be overridden per
50+
* call with the `restrictConditionals` render option.
51+
*/
52+
public bool $restrictParserConditionals = false;
53+
4654
/**
4755
* View Decorators are class methods that will be run in sequence to
4856
* have a chance to alter the generated output just prior to caching

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"phpunit/phpcov": "^9.0.2 || ^10.0",
3030
"phpunit/phpunit": "^10.5.16 || ^11.2",
3131
"predis/predis": "^3.0",
32-
"rector/rector": "2.6.7",
32+
"rector/rector": "2.7.0",
3333
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3434
},
3535
"replace": {

‎phpdoc.dist.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<output>api/build/</output>
1111
<cache>api/cache/</cache>
1212
</paths>
13-
<version number="4.7.4">
13+
<version number="4.7.5">
1414
<api format="php">
1515
<source dsn=".">
1616
<path>system</path>

‎rector.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Rector\CodeQuality\Rector\BooleanNot\NegatedAndsToPositiveOrsRector;
1616
use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector;
1717
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;
18-
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
1918
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
2019
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
2120
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
@@ -101,6 +100,7 @@
101100

102101
// Exclude test file because `is_cli()` is mocked and Rector might remove needed parameters.
103102
RemoveExtraParametersRector::class => [
103+
__DIR__ . '/tests/system/CLI/CLITest.php',
104104
__DIR__ . '/tests/system/Debug/ToolbarTest.php',
105105
],
106106

@@ -177,7 +177,6 @@
177177
->withRules([
178178
DeclareStrictTypesRector::class,
179179
UnderscoreToCamelCaseVariableNameRector::class,
180-
SimplifyUselessVariableRector::class,
181180
PassStrictParameterToFunctionParameterRector::class,
182181
RemoveErrorSuppressInTryCatchStmtsRector::class,
183182
FuncGetArgsToVariadicParamRector::class,

‎system/CLI/AbstractCommand.php‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ abstract class AbstractCommand
4646
private readonly array $aliases;
4747

4848
private readonly bool $hidden;
49+
private readonly bool $headerless;
4950

5051
/**
5152
* @var list<non-empty-string>
@@ -145,6 +146,7 @@ public function __construct(private readonly Commands $commands)
145146
$this->group = $attribute->group;
146147
$this->aliases = $attribute->aliases;
147148
$this->hidden = $attribute->hidden;
149+
$this->headerless = $attribute->headerless;
148150

149151
$this->configure();
150152
$this->provideDefaultOptions();
@@ -185,6 +187,11 @@ public function isHidden(): bool
185187
return $this->hidden;
186188
}
187189

190+
public function isHeaderless(): bool
191+
{
192+
return $this->headerless;
193+
}
194+
188195
/**
189196
* @return list<non-empty-string>
190197
*/

‎system/CLI/Attributes/Command.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function __construct(
4545
public string $group = '',
4646
array $aliases = [],
4747
public bool $hidden = false,
48+
public bool $headerless = false,
4849
) {
4950
if ($name === '') {
5051
throw new LogicException(lang('Commands.emptyCommandName'));

0 commit comments

Comments
 (0)