Skip to content

Commit e74aac6

Browse files
committed
fix(dependencies): Update composer dependencies for compatibility
- Bump ergebnis/composer-normalize to version 2.49 - Bump bamarni/composer-bin-plugin to version 1.9 - Bump ergebnis/php-cs-fixer-config to version 6.59 - Add SafeDeclareStrictTypesRector to rector rules
1 parent d3cce2a commit e74aac6

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.php-cs-fixer-custom.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
'/\.lock$/',
110110
'/\-lock\.json$/',
111111
// '/\.php$/',
112-
'/\.php\.inc$/',
113112
'/(?<!\.blade)\.php$/',
114113
// Exclude temporary files created by `zhlint` in the current working directory.
115114
'/zhlint\-.*\..*$/',

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
},
4747
"require-dev": {
4848
"adamwojs/php-cs-fixer-phpdoc-force-fqcn": "^2.0",
49-
"bamarni/composer-bin-plugin": "^1.8",
49+
"bamarni/composer-bin-plugin": "^1.9",
5050
"brainmaestro/composer-git-hooks": "^2.8 || ^3.0",
5151
"composer/composer": "^2.9",
52-
"ergebnis/composer-normalize": "^2.48",
52+
"ergebnis/composer-normalize": "^2.49",
5353
"ergebnis/license": "^2.7",
54-
"ergebnis/php-cs-fixer-config": "^6.58",
54+
"ergebnis/php-cs-fixer-config": "^6.59",
5555
"ergebnis/rector-rules": "^1.9",
5656
"fakerphp/faker": "^1.24",
5757
"guanguans/php-cs-fixer-custom-fixers": "^1.1",
@@ -192,6 +192,7 @@
192192
"@lint-md",
193193
"@peck",
194194
"@php-cs-fixer:custom-fix-dry-run",
195+
"@php-cs-fixer:custom-ln-config",
195196
"@rule-doc-generator:generate",
196197
"@typos",
197198
"@zhlint"

rector.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector;
4646
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4747
use Rector\PHPUnit\Set\PHPUnitSetList;
48-
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
4948
use Rector\Set\ValueObject\DowngradeLevelSetList;
5049
use Rector\Set\ValueObject\SetList;
5150
use Rector\Transform\Rector\String_\StringToClassConstantRector;
51+
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector;
5252
use Rector\ValueObject\PhpVersion;
5353
use Rector\ValueObject\Visibility;
5454
use Rector\Visibility\Rector\ClassMethod\ChangeMethodVisibilityRector;
@@ -119,6 +119,7 @@
119119
->withRules([
120120
// ArraySpreadInsteadOfArrayMergeRector::class,
121121
JsonThrowOnErrorRector::class,
122+
SafeDeclareStrictTypesRector::class,
122123
SortAssociativeArrayByKeyRector::class,
123124
StaticArrowFunctionRector::class,
124125
StaticClosureRector::class,
@@ -170,11 +171,6 @@ classes(static fn (string $class): bool => str_starts_with($class, 'Guanguans\Re
170171
// ->dd()
171172
->all(),
172173
)
173-
->withConfiguredRule(RenameFunctionRector::class, [
174-
'Pest\Faker\fake' => 'fake',
175-
'Pest\Faker\faker' => 'fake',
176-
'test' => 'it',
177-
])
178174
->withSkip([
179175
DowngradeArrayFirstLastRector::class,
180176
DowngradeArrayIsListRector::class,

vendor-bin/common/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require-dev": {
33
"php": ">=7.4",
4-
"ergebnis/composer-normalize": "^2.48",
4+
"ergebnis/composer-normalize": "^2.49",
55
"symplify/rule-doc-generator": "^12.2"
66
},
77
"config": {

vendor-bin/php82/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"require-dev": {
33
"php": ">=8.2",
4-
"ergebnis/composer-normalize": "^2.48",
4+
"ergebnis/composer-normalize": "^2.49",
55
"guanguans/monorepo-builder-worker": "^3.0",
66
"guzzlehttp/guzzle": "^7.10",
7-
"laravel/framework": "^12.48",
7+
"laravel/framework": "^12.49",
88
"mrpunyapal/rector-pest": "^0.1",
99
"peckphp/peck": "^0.2",
1010
"phpbench/phpbench": "^1.4",

0 commit comments

Comments
 (0)