vlad-ghita/symphony-2 — comment on commit 55bc74244d139f90f1b0a70749820cd09852649a
File: symphony/lib/toolkit/class.general.php line 1363
By vlad-ghita:

> Also, do you think it would be better to show the name of the argument that failed rather than the position?

That was my first approach, but didn't want to over-complicate the caller code. Thinking at this:

> In some cases the position is not accurate as the first 3 parameters of the function can be type checked (ie. XMLElement $value) so the index will not truly reflect the argument in all scenarios?

I will re-add the variable name functionality. Function taken from [here](http://us2.php.net/manual/en/language.variables.php#49997).