Skip to content

Commit 241fd23

Browse files
committed
bump
1 parent fd2d83d commit 241fd23

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"require-dev": {
1010
"tracy/tracy": "^2.10",
11-
"rector/rector": "^0.19.2",
12-
"symplify/easy-coding-standard": "^12.1"
11+
"rector/rector": "^1.2",
12+
"symplify/easy-coding-standard": "^12.3"
1313
},
1414
"autoload": {
1515
"psr-4": {

rector.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\Set\ValueObject\LevelSetList;
76

8-
return static function (RectorConfig $rectorConfig): void {
9-
$rectorConfig->paths([
7+
return RectorConfig::configure()
8+
->withPaths([
109
__DIR__ . '/src',
1110
__DIR__ . '/tests',
12-
]);
13-
14-
$rectorConfig->sets([
15-
LevelSetList::UP_TO_PHP_82,
16-
]);
17-
};
11+
])
12+
->withPhpSets()
13+
->withPreparedSets(deadCode: true, codeQuality: true);

src/PHPUnitJsonResultPrinterExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
final class PHPUnitJsonResultPrinterExtension implements Extension
1919
{
20-
private SimplePrinter $simplePrinter;
20+
private readonly SimplePrinter $simplePrinter;
2121

2222
public function __construct()
2323
{

src/Printer/SimplePrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
final class SimplePrinter
1010
{
1111
public function __construct(
12-
private Printer $phpunitPrinter
12+
private readonly Printer $phpunitPrinter
1313
) {
1414
}
1515

src/Subscribers/TestRunner/TestRunnerFinishedSubscriber.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
final class TestRunnerFinishedSubscriber implements FinishedSubscriber
1717
{
1818
public function __construct(
19-
private SimplePrinter $simplePrinter
19+
private readonly SimplePrinter $simplePrinter
2020
) {
2121
}
2222

@@ -70,6 +70,11 @@ private function createDataProviderData(TestMethod $testMethod): array
7070
private function resolveLineNumber(string $stackTrace): int
7171
{
7272
preg_match('#:(?<line>\d+)$#', $stackTrace, $matches);
73+
74+
if (! isset($matches['line'])) {
75+
return 0;
76+
}
77+
7378
return (int) $matches['line'];
7479
}
7580

0 commit comments

Comments
 (0)