Skip to content
Snippets Groups Projects
Commit dbd96574 authored by James Shields's avatar James Shields Committed by Chris Wells
Browse files

Issue #3348960: @todo Add return type when php 7.4 support ends

parent 27aa8f7f
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ use Drupal\project_browser\EnabledSourceHandler; ...@@ -15,6 +15,7 @@ use Drupal\project_browser\EnabledSourceHandler;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
/** /**
* Defines a controller to install projects via UI. * Defines a controller to install projects via UI.
...@@ -261,10 +262,8 @@ class InstallerController extends ControllerBase { ...@@ -261,10 +262,8 @@ class InstallerController extends ControllerBase {
* *
* @return \Symfony\Component\HttpFoundation\JsonResponse|\Symfony\Component\HttpFoundation\RedirectResponse * @return \Symfony\Component\HttpFoundation\JsonResponse|\Symfony\Component\HttpFoundation\RedirectResponse
* Redirects to the main project browser page. * Redirects to the main project browser page.
*
* @todo add return type when php 7.4 support ends.
*/ */
public function unlock() { public function unlock(): JsonResponse|RedirectResponse {
try { try {
// It's possible the unlock url was provided before applying began, but // It's possible the unlock url was provided before applying began, but
// accessed after. This final check ensures a destroy is not attempted // accessed after. This final check ensures a destroy is not attempted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment