Project

General

Profile

Actions

Bug #104591

closed

Argument #1 ($id) must be of type int in DatabaseIntegrityController.php

Added by Thomas Hohn 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2024-08-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With the introduction of types on the method getTreeList (TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController)
there is a missing cast for mountpoints - since the method call $backendUserAuthentication->returnWebmounts()
returns a string list of mountpoints causing the calls

$this->getTreeList($webMount, 999, 0, $perms_clause);

to throw an type error as stated below:

vendor/typo3/cms-lowlevel/Classes/Controller/DatabaseIntegrityController.php, line 640: TYPO3\\CMS\\Lowlevel\\Controller\\DatabaseIntegrityController::getTreeList(): Argument #1 ($id) must be of type int, string given, called in /mnt/opt/share/TYPO3_systime_internetbook_bundle-development-9bb28736fcdefa7bb5a5977295069781c4f3fdaf/vendor/typo3/cms-lowlevel/Classes/Controller/DatabaseIntegrityController.php on line 1894 -

The fix is straight forward to cast webMount in the calls


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #104607: Deprecate BackendUserAuthentication:returnWebmounts()Closed2024-08-13

Actions
Related to TYPO3 Core - Task #104614: BackendUserAuthentication::getWebmounts() should return an unique listClosedThomas Hohn2024-08-13

Actions
Actions

Also available in: Atom PDF