Project

General

Profile

Actions

Bug #23893

closed

Add type hints for function parameters in tslib_content

Added by Jigal van Hemert over 13 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Functions in tslib_content do not have type hints for array or object parameters.

Problem: if you pass a string instead of an array PHP will try to index this string instead of using parts of the array. This will lead to errors about trying to use a string offset.
If a type hint is used there will be a clear error that the wrong type was used.

This was discussed with Joey Hasenau who has taken care of the restructuring of the stdWrap functions in tslib_content.

(issue imported from #M16194)

Actions

Also available in: Atom PDF