Skip to content

Commit 0ffe391

Browse files
authored
Merge pull request #9048 from codeigniter4/dependabot/composer/rector/rector-1.2.1
chore(deps-dev): update rector/rector requirement from 1.2.0 to 1.2.1
2 parents bebf3f4 + 6845989 commit 0ffe391

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"phpunit/phpcov": "^9.0.2",
3333
"phpunit/phpunit": "^10.5.16",
3434
"predis/predis": "^1.1 || ^2.0",
35-
"rector/rector": "1.2.0",
35+
"rector/rector": "1.2.1",
3636
"vimeo/psalm": "^5.0"
3737
},
3838
"replace": {

phpstan-baseline.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7453,12 +7453,6 @@
74537453
'count' => 1,
74547454
'path' => __DIR__ . '/system/Helpers/test_helper.php',
74557455
];
7456-
$ignoreErrors[] = [
7457-
// identifier: empty.notAllowed
7458-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
7459-
'count' => 1,
7460-
'path' => __DIR__ . '/system/Helpers/text_helper.php',
7461-
];
74627456
$ignoreErrors[] = [
74637457
// identifier: missingType.iterableValue
74647458
'message' => '#^Function strip_slashes\\(\\) has parameter \\$str with no value type specified in iterable type array\\.$#',

system/Helpers/text_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function convert_accented_characters(string $str): string
310310
if (! is_array($arrayFrom)) {
311311
$config = new ForeignCharacters();
312312

313-
if (empty($config->characterList) || ! is_array($config->characterList)) {
313+
if ($config->characterList === [] || ! is_array($config->characterList)) {
314314
$arrayFrom = [];
315315
$arrayTo = [];
316316

0 commit comments

Comments
 (0)