Project

General

Profile

Actions

Task #101934

closed

Cleanup code for ContentObjectRenderer::listNum and add tests

Added by Sybille Peters 7 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 #1

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81034

Actions #2

Updated by Gerrit Code Review 7 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81034

Actions #3

Updated by Gerrit Code Review 7 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81055

Actions #4

Updated by Sybille Peters 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Christian Kuhn 7 months ago

  • Related to Bug #101925: Check if index exists in stdWrap.listNum to avoid PHP warnings added
Actions #6

Updated by Benni Mack 3 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF