Skip to content

Commit a2fe54e

Browse files
fix(docs): Update Rector command in composer.json to remove unnecessary 'src' argument. (#81)
1 parent b617ad7 commit a2fe54e

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 0.4.1 Under development
44

5+
- Bug #81: Update Rector command in `composer.json` to remove unnecessary 'src' argument (@terabytesoftw)
6+
57
## 0.4.0 January 26, 2026
68

79
- Bug #71: Update `.gitattributes` to exclude additional files from the package (@terabytesoftw)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"scripts": {
5151
"check-dependencies": "./vendor/bin/composer-require-checker check",
5252
"ecs": "./vendor/bin/ecs --fix",
53-
"rector": "./vendor/bin/rector process src",
53+
"rector": "./vendor/bin/rector process",
5454
"static": "./vendor/bin/phpstan --memory-limit=-1",
5555
"sync-metadata": [
5656
"curl -fsSL -o .editorconfig https://raw.githubusercontent.com/yii2-extensions/template/main/.editorconfig",

tests/config/definitions-closure-not-return-type.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
return [
66
'container' => [
77
'definitions' => [
8-
'closure-not-return-type' => static function () {
9-
return new ArrayObject();
10-
},
8+
'closure-not-return-type' => static fn() => new ArrayObject(),
119
],
1210
],
1311
];

tests/config/phpstan-config.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@
5454
],
5555
'container' => [
5656
'definitions' => [
57-
'closure' => static function (): SplStack {
58-
return new SplStack();
59-
},
57+
'closure' => static fn(): SplStack => new SplStack(),
6058
MyActiveRecord::class => [
6159
'flag' => 'foo',
6260
],
@@ -70,9 +68,7 @@
7068
],
7169
],
7270
'singletons' => [
73-
'singleton-closure' => static function (): SplStack {
74-
return new SplStack();
75-
},
71+
'singleton-closure' => static fn(): SplStack => new SplStack(),
7672
'singleton-nested-service-class' => [
7773
[
7874
'class' => SplFileInfo::class,

tests/config/singletons-closure-not-return-type.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
return [
66
'container' => [
77
'singletons' => [
8-
'closure-not-return-type' => static function () {
9-
return new ArrayObject();
10-
},
8+
'closure-not-return-type' => static fn() => new ArrayObject(),
119
],
1210
],
1311
];

tests/support/stub/BehaviorOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function behaviorOneMethod(): string
3434
/**
3535
* @phpstan-return string
3636
*/
37-
public function methodWithoutReturnType()
37+
public function methodWithoutReturnType(): string
3838
{
3939
return 'test string';
4040
}

0 commit comments

Comments
 (0)