Skip to content

Commit 40c4504

Browse files
feat(version): support 0.11.0
1 parent 253faec commit 40c4504

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite PHP SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
4-
![Version](https://img.shields.io/badge/api%20version-0.10.0-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-0.11.0-blue.svg?style=flat-square&v=1)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 0.10.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9+
**This SDK is compatible with Appwrite server version 0.11.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

docs/teams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ Please note that in order to avoid a [Redirect Attacks](https://github.com/OWASP
111111
| --- | --- | --- | --- |
112112
| teamId | string | **Required** Team unique ID. | |
113113
| email | string | New team member email. | |
114-
| name | string | New team member name. Max length: 128 chars. | |
115114
| roles | array | Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Max length for each role is 32 chars. | |
116115
| url | string | URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API. | |
116+
| name | string | New team member name. Max length: 128 chars. | |
117117

118118
## Update Membership Roles
119119

src/Appwrite/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Client
3535
*/
3636
protected $headers = [
3737
'content-type' => '',
38-
'x-sdk-version' => 'appwrite:php:2.3.1',
38+
'x-sdk-version' => 'appwrite:php:2.3.2',
3939
];
4040

4141
/**

src/Appwrite/Services/Teams.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ public function createMembership(string $teamId, string $email, array $roles, st
262262
$params['email'] = $email;
263263
}
264264

265-
if (!is_null($name)) {
266-
$params['name'] = $name;
267-
}
268-
269265
if (!is_null($roles)) {
270266
$params['roles'] = $roles;
271267
}
@@ -274,6 +270,10 @@ public function createMembership(string $teamId, string $email, array $roles, st
274270
$params['url'] = $url;
275271
}
276272

273+
if (!is_null($name)) {
274+
$params['name'] = $name;
275+
}
276+
277277
return $this->client->call(Client::METHOD_POST, $path, [
278278
'content-type' => 'application/json',
279279
], $params);

0 commit comments

Comments
 (0)