Project

General

Profile

Actions

Task #95901

closed

Wrong return type declared for PageSlugCandidateProvider::getCandidatesForPath

Added by Sybille Peters over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2021-11-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

phpstan reports:

Method TYPO3\CMS\Core\Routing\PageSlugCandidateProvider::getCandidatesForPath() should return array<string> but returns array<int, array>.

  * @return string[]
     */
    public function getCandidatesForPath

should be

array<int,array<string,mixed>>

Actions

Also available in: Atom PDF