Skip to content

Commit 3e94871

Browse files
#252: Fixed Rector configuration and applied Rector
1 parent 5f51382 commit 3e94871

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
__DIR__ . '/tests',
1313
])
1414
->withSets([
15-
LevelSetList::UP_TO_PHP_80,
16-
SymfonySetList::SYMFONY_60,
15+
LevelSetList::UP_TO_PHP_81,
16+
SymfonySetList::SYMFONY_61,
1717
])
1818
->withImportNames(
1919
importShortClasses: false,

tests/Models/ToStringObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ToStringObject implements \Stringable
2626
{
2727
public function __construct(
28-
private string $value
28+
private readonly string $value
2929
) {
3030
}
3131

tests/Models/TraversableObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TraversableObject implements \IteratorAggregate
3434
* @param array<TKey, TValue> $container
3535
*/
3636
public function __construct(
37-
private array $container = []
37+
private readonly array $container = []
3838
) {
3939
}
4040

0 commit comments

Comments
 (0)