Skip to content

Commit 233b13e

Browse files
authored
Make package requirements less strict (#52)
1 parent 3f180a1 commit 233b13e

File tree

19 files changed

+31
-28
lines changed

19 files changed

+31
-28
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## master
4+
* Make package requirements less strict
5+
36
## 2.2.0 (22.06.2020)
47
* Feature: Allow specifying labels on `createImage`
58
* Feature: Allow creation of Servers with Networks

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"cloud php library"
1010
],
1111
"require": {
12-
"php": ">=7.0.0",
12+
"php": ">=7.1.0",
1313
"ext-json": "*",
14-
"guzzlehttp/guzzle": "^6.3",
15-
"tightenco/collect": "^5.5"
14+
"guzzlehttp/guzzle": "^6.3|^7.0",
15+
"tightenco/collect": "^5.5|^v6.18|^7.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "6.5.14",
19-
"brianium/paratest": "1.*"
18+
"phpunit/phpunit": "^7.0|^8.5.5",
19+
"brianium/paratest": "3.*"
2020
},
2121
"license": "MIT",
2222
"authors": [

tests/Integration/Actions/ActionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ActionsTest extends TestCase
1818
*/
1919
protected $actions;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->actions = new Actions($this->hetznerApi->getHttpClient());

tests/Integration/Datacenters/DatacentersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DatacentersTest extends TestCase
1818
*/
1919
protected $datacenters;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->datacenters = new Datacenters($this->hetznerApi->getHttpClient());

tests/Integration/FloatingIPs/FloatingIPsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FloatingIPsTest extends TestCase
2020
*/
2121
protected $floatingIps;
2222

23-
public function setUp()
23+
public function setUp(): void
2424
{
2525
parent::setUp();
2626
$this->floatingIps = new FloatingIps($this->hetznerApi->getHttpClient());

tests/Integration/FloatingIPs/FloatingIpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FloatingIpTest extends TestCase
2323
*/
2424
protected $floatingIp;
2525

26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
parent::setUp();
2929
$tmp = new FloatingIps($this->hetznerApi->getHttpClient());

tests/Integration/ISO/ISOsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ISOsTest extends TestCase
1818
*/
1919
protected $isos;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->isos = new ISOs($this->hetznerApi->getHttpClient());

tests/Integration/Images/ImagesTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ImagesTest extends TestCase
1818
*/
1919
protected $images;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->images = new Images($this->hetznerApi->getHttpClient());
@@ -28,16 +28,16 @@ public function testGet()
2828
{
2929
$image = $this->images->get(4711);
3030
$this->assertEquals($image->id, 4711);
31-
$this->assertEquals($image->name, 'ubuntu-16.04');
31+
$this->assertEquals($image->name, 'ubuntu-20.04');
3232

3333
$this->assertEmpty($image->labels);
3434
}
3535

3636
public function testGetByName()
3737
{
38-
$image = $this->images->getByName('ubuntu-16.04');
38+
$image = $this->images->getByName('ubuntu-20.04');
3939
$this->assertEquals($image->id, 4711);
40-
$this->assertEquals($image->name, 'ubuntu-16.04');
40+
$this->assertEquals($image->name, 'ubuntu-20.04');
4141

4242
$this->assertEmpty($image->labels);
4343
}
@@ -48,7 +48,7 @@ public function testAll()
4848

4949
$this->assertEquals(count($images), 1);
5050
$this->assertEquals($images[0]->id, 4711);
51-
$this->assertEquals($images[0]->name, 'ubuntu-16.04');
51+
$this->assertEquals($images[0]->name, 'ubuntu-20.04');
5252
}
5353

5454
public function testUpdate()

tests/Integration/Locations/LocationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LocationsTest extends TestCase
1818
*/
1919
protected $locations;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->locations = new Locations($this->hetznerApi->getHttpClient());

tests/Integration/Networks/NetworkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class NetworkTest extends TestCase
1515
*/
1616
protected $network;
1717

18-
public function setUp()
18+
public function setUp(): void
1919
{
2020
parent::setUp();
2121
$tmp = new Networks($this->hetznerApi->getHttpClient());

0 commit comments

Comments
 (0)