Skip to content

Commit 725b667

Browse files
committed
skip exception
1 parent 1c2e6b0 commit 725b667

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
1010
use Rector\Set\ValueObject\LevelSetList;
1111
use Rector\Set\ValueObject\SetList;
12+
use Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector;
1213

1314
return static function (RectorConfig $rectorConfig): void {
1415
$rectorConfig->sets([
@@ -38,5 +39,8 @@
3839
__DIR__ . '/spec',
3940
],
4041
FirstClassCallableRector::class,
42+
BooleanInBooleanNotRuleFixerRector::class => [
43+
__DIR__ . '/src/Handler/Logging.php',
44+
],
4145
]);
4246
};

src/Handler/Logging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private function isExists(
227227
} catch (RuntimeException $runtimeException) {
228228
// use \Laminas\Db\Adapter\Exception\RuntimeException but do here
229229
// to avoid too much deep trace from Laminas\Db classes
230-
throw new ${(${''} = $runtimeException::class) === ''}($runtimeException->getMessage());
230+
throw new ${! ${''} = $runtimeException::class}($runtimeException->getMessage());
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)