Issue Bug Closed

#23893Add type hints for function parameters in tslib_content

Jigal van Hemert 10/31/10, 22:08 updated 06/15/15, 10:36

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.