Skip to content

Commit d07b830

Browse files
authored
Merge pull request #39 from CyberfusionNL/1.87
Version 1.87
2 parents 8dd4176 + aec8100 commit d07b830

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog)
77
for detailed information.
88

9+
## [1.87.0]
10+
11+
### Changed
12+
13+
- The `files` attribute of the `UnixUserUsage` model is now nullable.
14+
915
## [1.86.4]
1016

1117
### Fixed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Client for the [Cyberfusion Cluster API](https://cluster-api.cyberfusion.nl/).
44

5-
This client was built for and tested on the **1.164** version of the API.
5+
This client was built for and tested on the **1.166** version of the API.
66

77
## Support
88

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Client implements ClientContract
2020
{
2121
private const CONNECT_TIMEOUT = 60;
2222
private const TIMEOUT = 180;
23-
private const VERSION = '1.86.4';
23+
private const VERSION = '1.87.0';
2424
private const USER_AGENT = 'cyberfusion-cluster-api-client/' . self::VERSION;
2525

2626
private Configuration $configuration;

src/Models/UnixUserUsage.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UnixUserUsage extends ClusterModel implements Model
1010
{
1111
private int $unixUserId;
1212
private int $usage;
13-
private array $files = [];
13+
private ?array $files = null;
1414
private string $timestamp;
1515

1616
public function getUnixUserId(): int
@@ -37,14 +37,15 @@ public function setUsage(int $usage): self
3737
return $this;
3838
}
3939

40-
public function getFiles(): array
40+
public function getFiles(): ?array
4141
{
4242
return $this->files;
4343
}
4444

45-
public function setFiles(array $files): self
45+
public function setFiles(?array $files): self
4646
{
4747
Validator::value($files)
48+
->nullable()
4849
->each()
4950
->path()
5051
->validate();

0 commit comments

Comments
 (0)