src/Koldy/Db/Adapter/PostgreSQL.php
public static function isBoolTrue(?string $input): ?bool
    {
        if ($input === null) {
            return null;
        }

        $input = strtolower($input);

        if ($input === 'true' || $input === '1') {
            return true;

        } else if ($input === 'false' || $input === '0' || $input === '') {
            return false;
        }

        throw new LanguageException('Unable to determine if given $input is boolean');
    }
public static function isBoolTrue(?string $input): ?bool
    {
        if ($input === null) {
            return null;
        }

        $input = strtolower($input);

        if ($input === 'true' || $input === '1') {
            return true;

        } else if ($input === 'false' || $input === '0' || $input === '') {
            return false;
        }

        throw new LanguageException('Unable to determine if given $input is boolean');
    }
public static function isBoolTrue ( ? string $ input ) : ? bool { if ( $ input === null ) { return null ; } $ input = strtolower ( $ input ) ; if ( $ input === 'true' || $ input === '1' ) { return true ; } else if ( $ input === 'false' || $ input === '0' || $ input === '' ) { return false ; } throw new LanguageException ( 'Unable to determine if given $input is boolean' ) ; }
Helper for Postgres determining if there's a boolean value in database. This is useful because PDO on Postgres
returns string for boolean values.

If you pass null as parameter, you'll get null back.

@param null|string $input

@return bool|null
@throws LanguageException
Helper for Postgres determining if there s a boolean value in database . This is useful because PDO on Postgres returns string for boolean values .