Project

General

Profile

Actions

Task #101934

closed

Cleanup code for ContentObjectRenderer::listNum and add tests

Added by Sybille Peters 8 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Should have
Category:
Code Cleanup
Target version:
-
Start date:
2023-09-17
Due date:
% Done:

100%

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

Description

- Add unit tests for function ContentObjectRenderer::listNum.
- Improve code by renaming function argument ($char => $delimeter)
- Make sure arguments are always passed as strings (and not null)
(as declared in PHPDoc)
- Improve clarity of description in PHPDoc

In the future typehints can be added for function arguments and
return type.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101925: Check if index exists in stdWrap.listNum to avoid PHP warningsResolved2023-09-15

Actions
Actions

Also available in: Atom PDF