| @@ -86,9 +86,9 @@ | ||
| 86 | 86 | * @param $version |
| 87 | 87 | * @param bool $should_validate |
| 88 | 88 | * |
| 89 | 89 | * @return static |
| 90 | - * @throws \Exception If version comparison fails or invalid version format is provided. | |
| 90 | + * @throws \Exception | |
| 91 | 91 | */ |
| 92 | 92 | public static function create_from_string( $version, $should_validate = true ) { |
| 93 | 93 | if ( $should_validate && ! static::is_valid_version( $version ) ) { |
| 94 | 94 | throw new \Exception( sprintf( '%s is an invalid version.', esc_html( $version ) ) ); |
| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | * @param $version |
| 131 | 131 | * @param string $part |
| 132 | 132 | * |
| 133 | 133 | * @return bool |
| 134 | - * @throws \Exception If version validation fails or parsing errors occur. | |
| 134 | + * @throws \Exception | |
| 135 | 135 | */ |
| 136 | 136 | public function compare( $operator, $version, $part = self::PART_STAGE ) { |
| 137 | 137 | if ( ! ( $version instanceof Version ) ) { |
| 138 | 138 | if ( ! static::is_valid_version( $version ) ) { |