Commit 0308031 1 parent b0cd7a1 commit 0308031 Copy full SHA for 0308031
File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
this package and not the Core API. See the changelog of the [ Core API] ( https://core-api.cyberfusion.io/redoc#section/Changelog )
7
7
for detailed information.
8
8
9
+ ## [ 1.118.1]
10
+
11
+ ### Fixed
12
+
13
+ - Allow the host of the database user to be ` null ` to match the Core API spec.
14
+
9
15
## [ 1.118.0]
10
16
11
17
### Added
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Client implements ClientContract
20
20
21
21
private const TIMEOUT = 180 ;
22
22
23
- private const VERSION = '1.118.0 ' ;
23
+ private const VERSION = '1.118.1 ' ;
24
24
25
25
private const USER_AGENT = 'cyberfusion-cluster-api-client/ ' . self ::VERSION ;
26
26
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class DatabaseUser extends ClusterModel
14
14
private string $ name ;
15
15
private ?string $ password ;
16
16
private ?array $ phpmyadminFirewallGroupsIds = null ;
17
- private string $ host = self ::DEFAULT_HOST ;
17
+ private ? string $ host = self ::DEFAULT_HOST ;
18
18
private string $ serverSoftwareName = DatabaseEngine::SERVER_SOFTWARE_MARIADB ;
19
19
private ?int $ id = null ;
20
20
private ?int $ clusterId = null ;
@@ -38,16 +38,17 @@ public function setName(string $name): self
38
38
return $ this ;
39
39
}
40
40
41
- public function getHost (): string
41
+ public function getHost (): ? string
42
42
{
43
43
return $ this ->host ;
44
44
}
45
45
46
- public function setHost (string $ host ): self
46
+ public function setHost (? string $ host ): self
47
47
{
48
48
Validator::value ($ host )
49
49
->maxLength (253 )
50
50
->valueIn (Host::AVAILABLE )
51
+ ->nullable ()
51
52
->validate ();
52
53
53
54
$ this ->host = $ host ;
You can’t perform that action at this time.
0 commit comments