diff --git a/composer.json b/composer.json
index bcb58ab..d91f9e3 100644
--- a/composer.json
+++ b/composer.json
@@ -53,7 +53,7 @@
"require-dev": {
"phpunit/phpunit": "^8.4",
"aws/aws-sdk-php": "^3.0@dev",
- "google/cloud-storage": "dev-master",
+ "google/cloud-storage": "dev-main",
"microsoft/azure-storage-blob": "dev-master"
},
"autoload-dev": {
diff --git a/src/AutoReps.php b/src/AutoReps.php
index b704928..63aa200 100644
--- a/src/AutoReps.php
+++ b/src/AutoReps.php
@@ -16,6 +16,7 @@
use FFMpeg\Format\VideoInterface;
use Streaming\Exception\InvalidArgumentException;
use Streaming\Exception\RuntimeException;
+use Traversable;
class AutoReps implements \IteratorAggregate
@@ -93,7 +94,7 @@ private function getKiloBitRate(): int
return intval(($this->original_format->get('bit_rate') / 1024) * .9);
}
- return (int)$this->video->get('bit_rate') / 1024;
+ return intval($this->video->get('bit_rate') / 1024);
}
/**
@@ -231,7 +232,7 @@ public function getKBitrate(): array
* Retrieve an external iterator reps
* @return \Traversable An instance of an object implementing Iterator or Traversable
*/
- public function getIterator()
+ public function getIterator(): Traversable
{
$reps = $this->getCalculatedReps();
array_push($reps, $this->getOriginalRep());
diff --git a/src/RepsCollection.php b/src/RepsCollection.php
index ada2ef3..11a7990 100644
--- a/src/RepsCollection.php
+++ b/src/RepsCollection.php
@@ -98,7 +98,7 @@ public function count(): int
/**
* {@inheritdoc}
*/
- public function getIterator()
+ public function getIterator(): \Traversable
{
return new \ArrayIterator($this->representations);
}
diff --git a/src/Stream.php b/src/Stream.php
index 5b9e133..d13b55d 100644
--- a/src/Stream.php
+++ b/src/Stream.php
@@ -189,7 +189,7 @@ public function metadata(): Metadata
public function __destruct()
{
// make sure that FFmpeg process has benn terminated
- sleep(.5);
+ sleep(1);
File::remove($this->tmp_dir);
if ($this->media->isTmp()) {