Skip to content

Commit ec15ace

Browse files
committed
Refine configs
1 parent 74dec6f commit ec15ace

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.php-cs-fixer.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
'@Symfony:risky' => true,
77
'@PHP8x4Migration' => true,
88
'@PHP8x4Migration:risky' => true,
9-
'@PHPUnit10x0Migration:risky' => true,
9+
'@PHPUnit11x0Migration:risky' => true,
1010
'array_syntax' => ['syntax' => 'short'],
1111
'blank_line_after_opening_tag' => false,
12-
'declare_strict_types' => false,
12+
'declare_strict_types' => ['strategy' => 'enforce'],
1313
'fopen_flags' => false,
1414
'linebreak_after_opening_tag' => false,
1515
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true],

‎rector.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
<?php declare(strict_types=1);
22

3+
use Rector\CodeQuality\Rector\Catch_\ThrowWithPreviousExceptionRector;
34
use Rector\Config\RectorConfig;
45

56
return RectorConfig::configure()
67
->withPaths([
78
__DIR__.'/src',
89
__DIR__.'/tests',
910
])
11+
->withSkip([
12+
ThrowWithPreviousExceptionRector::class, // Forces re-throwing with the wrapped exception's code, we aren't interested in this
13+
])
1014
->withImportNames(importShortClasses: false)
1115
->withPHPStanConfigs([
1216
__DIR__ . '/vendor/phpstan/phpstan-phpunit/extension.neon',
1317
__DIR__ . '/phpstan.neon',
1418
])
19+
->withComposerBased(phpunit: true)
1520
->withPhpSets()
1621
->withPreparedSets(codeQuality: true, phpunitCodeQuality: true)
1722
;

0 commit comments

Comments
 (0)