Skip to content

Commit 21d6dc5

Browse files
committed
Fix PhpStan errors.
1 parent a63119d commit 21d6dc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ConsoleExtension.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@ public function loadConfiguration(): void
8181
->setFactory(Application::class)
8282
->setAutowired(Application::class);
8383

84-
if (($config['name'] ?? null) !== null) { // Setup console name
84+
if (isset($config['name'])) { // Setup console name
8585
$applicationDef->addSetup('setName', [$config['name']]);
8686
}
87-
if (($config['version'] ?? null) !== null) { // Setup console version
88-
$applicationDef->addSetup('setVersion', [(string) $config['version']]);
87+
if (isset($config['version'])) { // Setup console version
88+
$applicationDef->addSetup('setVersion', [$config['version']]);
8989
}
90-
if (($config['catchExceptions'] ?? null) !== null) { // Catch or populate exceptions
90+
if (isset($config['catchExceptions'])) { // Catch or populate exceptions
9191
$applicationDef->addSetup('setCatchExceptions', [$config['catchExceptions']]);
9292
}
93-
if (($config['autoExit'] ?? null) !== null) { // Call die() or not
93+
if (isset($config['autoExit'])) { // Call die() or not
9494
$applicationDef->addSetup('setAutoExit', [$config['autoExit']]);
9595
}
96-
if (($config['helperSet'] ?? null) !== null) { // Register given or default HelperSet
96+
if (isset($config['helperSet'])) { // Register given or default HelperSet
9797
$applicationDef->addSetup('setHelperSet', [
9898
$definitionHelper->getDefinitionFromConfig($config['helperSet'], $this->prefix('helperSet')),
9999
]);

0 commit comments

Comments
 (0)