File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,11 @@ public function getApplications(): array
153
153
* Get application from config by name
154
154
*
155
155
* @param $applicationName
156
- * @return mixed
156
+ * @return ApplicationAbstract|null
157
157
*/
158
- public function getApplication ($ applicationName ): ApplicationAbstract
158
+ public function getApplication ($ applicationName ): ? ApplicationAbstract
159
159
{
160
- return $ this ->_applications [$ applicationName ];
160
+ return $ this ->_applications [$ applicationName ] ?? null ;
161
161
}
162
162
163
163
/**
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ public function getApplications(): array;
59
59
60
60
/**
61
61
* @param $applicationName
62
- * @return ApplicationAbstract
62
+ * @return ApplicationAbstract|null
63
63
*/
64
- public function getApplication ($ applicationName ): ApplicationAbstract ;
64
+ public function getApplication ($ applicationName ): ? ApplicationAbstract ;
65
65
66
66
/**
67
67
* @param ApplicationAbstract $application
You can’t perform that action at this time.
0 commit comments