Skip to content

Commit b4c0059

Browse files
authored
Merge pull request #386 from Art4/384-deprecate-all-redmineapiissueprio_-constants
Deprecate all `\Redmine\Api\Issue::PRIO_*` constants
2 parents f62f766 + 3abaa75 commit b4c0059

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828

2929
- `Redmine\Api\AbstractApi::get()` is deprecated, use `\Redmine\Http\HttpClient::request()` instead.
3030
- `Redmine\Api\AbstractApi::post()` is deprecated, use `\Redmine\Http\HttpClient::request()` instead.
31+
- The constant `Redmine\Api\Issue::PRIO_LOW` is deprecated.
32+
- The constant `Redmine\Api\Issue::PRIO_NORMAL` is deprecated.
33+
- The constant `Redmine\Api\Issue::PRIO_HIGH` is deprecated.
34+
- The constant `Redmine\Api\Issue::PRIO_URGENT` is deprecated.
35+
- The constant `Redmine\Api\Issue::PRIO_IMMEDIATE` is deprecated.
3136

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

src/Redmine/Api/Issue.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,29 @@
2222
*/
2323
class Issue extends AbstractApi
2424
{
25+
/**
26+
* @deprecated v2.6.0 Will be removed in v3.0.0
27+
*/
2528
public const PRIO_LOW = 1;
29+
30+
/**
31+
* @deprecated v2.6.0 Will be removed in v3.0.0
32+
*/
2633
public const PRIO_NORMAL = 2;
34+
35+
/**
36+
* @deprecated v2.6.0 Will be removed in v3.0.0
37+
*/
2738
public const PRIO_HIGH = 3;
39+
40+
/**
41+
* @deprecated v2.6.0 Will be removed in v3.0.0
42+
*/
2843
public const PRIO_URGENT = 4;
44+
45+
/**
46+
* @deprecated v2.6.0 Will be removed in v3.0.0
47+
*/
2948
public const PRIO_IMMEDIATE = 5;
3049

3150
/**

0 commit comments

Comments
 (0)