Skip to content

Commit

Permalink
Merge pull request #386 from Art4/384-deprecate-all-redmineapiissuepr…
Browse files Browse the repository at this point in the history
…io_-constants

Deprecate all `\Redmine\Api\Issue::PRIO_*` constants
  • Loading branch information
Art4 authored Feb 29, 2024
2 parents f62f766 + 3abaa75 commit b4c0059
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `Redmine\Api\AbstractApi::get()` is deprecated, use `\Redmine\Http\HttpClient::request()` instead.
- `Redmine\Api\AbstractApi::post()` is deprecated, use `\Redmine\Http\HttpClient::request()` instead.
- The constant `Redmine\Api\Issue::PRIO_LOW` is deprecated.
- The constant `Redmine\Api\Issue::PRIO_NORMAL` is deprecated.
- The constant `Redmine\Api\Issue::PRIO_HIGH` is deprecated.
- The constant `Redmine\Api\Issue::PRIO_URGENT` is deprecated.
- The constant `Redmine\Api\Issue::PRIO_IMMEDIATE` is deprecated.

## [v2.5.0](https://github.com/kbsali/php-redmine-api/compare/v2.4.0...v2.5.0) - 2024-02-05

Expand Down
19 changes: 19 additions & 0 deletions src/Redmine/Api/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,29 @@
*/
class Issue extends AbstractApi
{
/**
* @deprecated v2.6.0 Will be removed in v3.0.0
*/
public const PRIO_LOW = 1;

/**
* @deprecated v2.6.0 Will be removed in v3.0.0
*/
public const PRIO_NORMAL = 2;

/**
* @deprecated v2.6.0 Will be removed in v3.0.0
*/
public const PRIO_HIGH = 3;

/**
* @deprecated v2.6.0 Will be removed in v3.0.0
*/
public const PRIO_URGENT = 4;

/**
* @deprecated v2.6.0 Will be removed in v3.0.0
*/
public const PRIO_IMMEDIATE = 5;

/**
Expand Down

0 comments on commit b4c0059

Please sign in to comment.