File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ' ,
You can’t perform that action at this time.
0 commit comments