Add this snippet:
<?php function return_hello( $string = 'Hello' ) { return var_export( $string, true ); }
In the Oxygen Builder add e.g. a text element and choose Insert Data -> PHP Function Return Value and as Function Name enter "return_hello" and leave the Function Arguments field empty.
Expected output: 'Hello'
Actual output: ''
As mentioned in the title, Oxygen does not care about the default value in a function's first argument, instead the value is overwritten with an empty string.
Add this snippet:
<?php function return_hello( $string = 'Hello' ) { return var_export( $string, true ); }
In the Oxygen Builder add e.g. a text element and choose Insert Data -> PHP Function Return Value and as Function Name enter "return_hello" and leave the Function Arguments field empty.
Expected output: 'Hello'
Actual output: ''
As mentioned in the title, Oxygen does not care about the default value in a function's first argument, instead the value is overwritten with an empty string.