src/Plugin/Setup.php
public function update_version()
    {
        $option = $this->slug . '_version';
        $old_version = get_option( $option );

        if ( false === $old_version ||
            version_compare( $old_version, $this->version, '<' ) ) {
            return update_option( $option, $this->version );
        }

        return true;
    }
public function update_version()
    {
        $option = $this->slug . '_version';
        $old_version = get_option( $option );

        if ( false === $old_version ||
            version_compare( $old_version, $this->version, '<' ) ) {
            return update_option( $option, $this->version );
        }

        return true;
    }
public function update_version ( ) { $ option = $ this -> slug . '_version' ; $ old_version = get_option ( $ option ) ; if ( false === $ old_version || version_compare ( $ old_version , $ this -> version , '<' ) ) { return update_option ( $ option , $ this -> version ) ; } return true ; }
Updates the version of the plugin

@return bool
Updates the version of the plugin