Documentation

FilterBooleanToStringTrait

Trait FilterBooleanToStringTrait

Table of Contents

Methods

filterBooleanToString()  : string
Convert bool true and false to string 'true' and 'false'.

Methods

filterBooleanToString()

Convert bool true and false to string 'true' and 'false'.

public static filterBooleanToString(bool $param) : string

This is necessary to prevent Guzzle from converting the query parameter to ?param=0 or ?param=1, which the backend does not recognize.

The backend only recognizes query parameter ?param=true and ?param=false.

Parameters
$param : bool
Return values
string

        
On this page

Search results