Fix a bunch of phpstan issues.

This commit is contained in:
James Cole
2026-03-09 20:38:58 +01:00
parent 91b7ee06d8
commit 28ff0a8423
48 changed files with 79 additions and 85 deletions

View File

@@ -61,7 +61,7 @@ final class NewUserController extends Controller
/**
* Form the user gets when he has no data in the system.
*
* @return Factory|Redirector|RedirectResponse|View
* @return Factory|RedirectResponse|View
*/
public function index(): Factory|\Illuminate\Contracts\View\View|Redirector|RedirectResponse
{
@@ -83,7 +83,7 @@ final class NewUserController extends Controller
/**
* Store his new settings.
*/
public function submit(NewUserFormRequest $request, CurrencyRepositoryInterface $currencyRepository): Redirector|RedirectResponse
public function submit(NewUserFormRequest $request, CurrencyRepositoryInterface $currencyRepository): RedirectResponse
{
$language = $request->convertString('language');
if (!array_key_exists($language, config('firefly.languages'))) {