public function init(): void
    {
        parent::init();

        foreach (['useTablePrefix', 'showOnly', 'generalSchema', 'fixHistory'] as $property) {
            if ($this->$property !== true) {
                if ($this->$property === 'true' || $this->$property === 1) {
                    $this->$property = true;
                }

                $this->$property = (bool)$this->$property;
            }
        }
    }
public function init(): void
    {
        parent::init();

        foreach (['useTablePrefix', 'showOnly', 'generalSchema', 'fixHistory'] as $property) {
            if ($this->$property !== true) {
                if ($this->$property === 'true' || $this->$property === 1) {
                    $this->$property = true;
                }

                $this->$property = (bool)$this->$property;
            }
        }
    }
public function init ( ) : void { parent :: init ( ) ; foreach ( [ 'useTablePrefix' , 'showOnly' , 'generalSchema' , 'fixHistory' ] as $ property ) { if ( $ this -> $ property !== true ) { if ( $ this -> $ property === 'true' || $ this -> $ property === 1 ) { $ this -> $ property = true ; } $ this -> $ property = ( bool ) $ this -> $ property ; } } }
Makes sure boolean properties are boolean.
Makes sure boolean properties are boolean .