[TYPO3-commerce] FYI96: PHP warning due to wrong parameter type (was: FYI24: PHP warning due to wrong parameter type)

Michael Knabe t3 at aafhh.de
Wed Jul 28 20:40:05 CEST 2010


Hi,

> please user FYI96 as written in our guidelines

thanks for the hint, changed that. Anyway now that you gave your -1 this 
thread behaves like a RFC.


> You have tagged this error for 0.10.1, trunk is 12.x, so is this error still valid for 0.12.x?
> If you fix this error here, why don't you change it in other objects, like categories?

That was my fault too. I just mixed up the version numbers as 0.9.9 was 
the last TER release. That made me think the next version had to be 
0.10.x. Fixed that in forge.


> If you change images to array, I believe the method load_data won't work as expected, since a string returned by the database select must be converted to an array not a string.

In current trunk $image *is* an array. I want to change that to a string.
Usually $image is written by parent::load_data which sets it to string. 
However, when parent::load_data fails (which it does for new datasets as 
there is nothing to load) the default value is used, which is an array 
but should be a string.

IMHO my solution is still valid.

Regards,
Michael



More information about the TYPO3-team-commerce mailing list