Skip to content

Commit 1c2e6b0

Browse files
committed
[Rector] Enable SetList::STRICT_BOOLEANS
1 parent fd6e1b4 commit 1c2e6b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
SetList::NAMING,
2020
SetList::PRIVATIZATION,
2121
SetList::TYPE_DECLARATION,
22+
SetList::STRICT_BOOLEANS,
2223
]);
2324

2425
$rectorConfig->parallel();

src/Handler/Logging.php

Lines changed: 3 additions & 3 deletions
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
}
@@ -237,11 +237,11 @@ private function isExists(
237237

238238
private function sendMail(int $priority, string $errorMessage, array $extra, string $subject): void
239239
{
240-
if (! $this->message || ! $this->mailMessageTransport) {
240+
if (! $this->message instanceof Message || ! $this->mailMessageTransport instanceof TransportInterface) {
241241
return;
242242
}
243243

244-
if (! $this->emailReceivers) {
244+
if ($this->emailReceivers === []) {
245245
return;
246246
}
247247

0 commit comments

Comments
 (0)