Skip to content

Commit 8d265a4

Browse files
committed
Update CHANGELOG.md
1 parent b079052 commit 8d265a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- New method `Redmine\Api\Attachment::update()` for updating attachments.
1213
- New interface `Redmine\Http\HttpClient` for new minimalistic HTTP clients.
1314
- New interface `Redmine\Http\Request` for sending data with new minimalistic HTTP clients.
1415
- New method `Redmine\Api\...::getLastResponse()` to get the last response made by the API class.
15-
- Add support for custom arrays in `Redmine\Serializer\XmlSerializer`
16+
- Add support for custom arrays in `Redmine\Serializer\XmlSerializer`.
1617

1718
### Changed
1819

src/Redmine/Api/Attachment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ public function show($id)
6464
*/
6565
final public function update(int $id, array $params): bool
6666
{
67-
// we are using `PUT` instead of `PATCH`
67+
// we are using `PUT` instead of documented `PATCH`
6868
// @see https://github.com/kbsali/php-redmine-api/pull/395#issuecomment-2004089154
69+
// @see https://www.redmine.org/projects/redmine/wiki/Rest_Attachments#PATCH
6970
$this->lastResponse = $this->getHttpClient()->request(HttpFactory::makeJsonRequest(
7071
'PUT',
7172
'/attachments/' . $id . '.json',

0 commit comments

Comments
 (0)