Issue Bug Closed

#68132It's not possible to use 0 as a TypoScript userfunc argument

Sascha Egerer 07/14/15, 17:53 updated 10/02/18, 11:35

Description

It’s not possible to use 0 as a argument in a TypoScript Userfunc as you will get this Error:

PHP Warning: Missing argument 2 for Vendor\Class::myFunction() in ...

Example Func:

...
        /*
     * @param string $param1 
     * @param int $param2
     * @return boolean
     */
    public function myFunction($param1, $param2) {
...

Example Call:

[userFunc = \Vendor\Class::myFunction(foo,0)] 
...
[global]

Reviews 2