Commit 9fb114df authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Cleanup, port back to php 7.3

parent 2b5a9fac
......@@ -30,12 +30,8 @@ use Exception;
use SGalinski\SgRest\Service\Authentication\AuthenticationServiceInterface;
use SGalinski\SgRest\Service\DataResolveService;
use SGalinski\SgRest\Service\RegistrationService;
use TYPO3\CMS\Core\Http\Response;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Mvc\RequestInterface;
use TYPO3\CMS\Extbase\Mvc\ResponseInterface;
use TYPO3\CMS\Extbase\Mvc\View\JsonView;
use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
use TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter;
......
......@@ -243,9 +243,9 @@ class PaginationService {
*/
protected function buildUrlSegments(array $parameters): string {
$urlSegments = array_map(
fn ($value, $key) => $key . '/' . urlencode($value),
array_values($parameters),
array_keys($parameters)
function ($value, $key) {
return $key . '/' . urlencode($value);
}, array_values($parameters), array_keys($parameters)
);
return '/' . implode('/', $urlSegments);
}
......
......@@ -12,7 +12,7 @@ $EM_CONF['sg_rest'] = [
'constraints' => [
'depends' => [
'typo3' => '10.4.0-11.5.99',
'php' => '7.4.0-8.1.99',
'php' => '7.3.0-8.1.99',
],
'conflicts' => [],
'suggests' => [],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment