@@ -81,19 +81,19 @@ public function loadConfiguration(): void
81
81
->setFactory (Application::class)
82
82
->setAutowired (Application::class);
83
83
84
- if (($ config ['name ' ] ?? null ) !== null ) { // Setup console name
84
+ if (isset ($ config ['name ' ]) ) { // Setup console name
85
85
$ applicationDef ->addSetup ('setName ' , [$ config ['name ' ]]);
86
86
}
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 ' ]]);
89
89
}
90
- if (($ config ['catchExceptions ' ] ?? null ) !== null ) { // Catch or populate exceptions
90
+ if (isset ($ config ['catchExceptions ' ]) ) { // Catch or populate exceptions
91
91
$ applicationDef ->addSetup ('setCatchExceptions ' , [$ config ['catchExceptions ' ]]);
92
92
}
93
- if (($ config ['autoExit ' ] ?? null ) !== null ) { // Call die() or not
93
+ if (isset ($ config ['autoExit ' ]) ) { // Call die() or not
94
94
$ applicationDef ->addSetup ('setAutoExit ' , [$ config ['autoExit ' ]]);
95
95
}
96
- if (($ config ['helperSet ' ] ?? null ) !== null ) { // Register given or default HelperSet
96
+ if (isset ($ config ['helperSet ' ]) ) { // Register given or default HelperSet
97
97
$ applicationDef ->addSetup ('setHelperSet ' , [
98
98
$ definitionHelper ->getDefinitionFromConfig ($ config ['helperSet ' ], $ this ->prefix ('helperSet ' )),
99
99
]);
0 commit comments