Skip to content

Commit 9de9cb4

Browse files
authored
Merge pull request #162 from renderforest/php-8
Php 8
2 parents 5c66990 + 360fb17 commit 9de9cb4

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "renderforest/sdk-php",
33
"description": "Renderforest SDK for PHP",
4-
"version": "0.5.8",
4+
"version": "0.6.0",
55
"homepage": "https://github.com/renderforest/renderforest-sdk-php",
66
"keywords": [
77
"animation maker",
@@ -18,9 +18,9 @@
1818
"video maker"
1919
],
2020
"require": {
21-
"php": ">=7.2.31",
21+
"php": ">=8.1.11",
2222
"guzzlehttp/guzzle": "^7.0",
23-
"laminas/laminas-stdlib": "3.2.1",
23+
"laminas/laminas-stdlib": "3.13.0",
2424
"ext-json": "*"
2525
},
2626
"autoload": {

examples/project-data/project-manipulation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'userId' => '1469277',
4444
'path' => 'http://techslides.com/demos/samples/sample.mp3',
4545
'duration' => 12,
46-
'filesize' => 198658
46+
'fileSize' => 198658
4747
]);
4848

4949
$projectData

src/Base/ApiEntityBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Renderforest\Base;
44

5-
use Zend\Stdlib\ArraySerializableInterface;
5+
use Laminas\Stdlib\ArraySerializableInterface;
66

77
/**
88
* Class EntityBase

src/Base/CollectionBase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Renderforest\Base;
44

5-
use Zend\Stdlib\ArraySerializableInterface;
5+
use Laminas\Stdlib\ArraySerializableInterface;
66

77
/**
88
* Class CollectionBase
@@ -33,12 +33,12 @@ public function count(): int
3333
return count($this->iteratorItems);
3434
}
3535

36-
public function current()
36+
public function current(): mixed
3737
{
3838
return $this->iteratorItems[$this->iteratorPosition];
3939
}
4040

41-
public function next()
41+
public function next(): void
4242
{
4343
++$this->iteratorPosition;
4444
}
@@ -59,7 +59,7 @@ public function valid(): bool
5959
return isset($this->iteratorItems[$this->iteratorPosition]);
6060
}
6161

62-
public function rewind()
62+
public function rewind(): void
6363
{
6464
$this->iteratorPosition = 0;
6565
}

src/Base/EntityBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Renderforest\Base;
44

5-
use Zend\Stdlib\ArraySerializableInterface;
5+
use Laminas\Stdlib\ArraySerializableInterface;
66

77
/**
88
* Class EntityBase

src/ProjectData/ProjectData.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,18 @@ public function setCurrentScreenId($currentScreenId): ProjectData
168168
}
169169

170170
/**
171-
* @return int
171+
* @return float
172172
*/
173-
public function getDuration(): int
173+
public function getDuration(): float
174174
{
175175
return $this->duration;
176176
}
177177

178178
/**
179-
* @param int $duration
179+
* @param float $duration
180180
* @return ProjectData
181181
*/
182-
private function setDuration(int $duration): ProjectData
182+
private function setDuration(float $duration): ProjectData
183183
{
184184
$this->duration = $duration;
185185

0 commit comments

Comments
 (0)