Skip to content

Commit

Permalink
Let's aim for php 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Taluu committed Jan 3, 2017
1 parent 85489b8 commit 2eb3766
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

php:
- 7.0
- 7.1
- hhvm

matrix:
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
],

"support": {
"email": "[email protected]",
"issues": "https://github.com/Wisembly/Totem/issues",
"source": "https://github.com/Wisembly/Totem"
},
Expand All @@ -32,7 +31,7 @@
},

"require": {
"php": "^7.0",
"php": "^7.1",

"symfony/property-access": "^3.0",
"php-ds/php-ds": "^1.0"
Expand Down
6 changes: 1 addition & 5 deletions src/Snapshot/CollectionSnapshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ final class CollectionSnapshot extends Snapshot implements MutableSnapshot
*/
private $mutable;

public function __construct($raw, array $data, array $link, bool $mutable = false)
public function __construct(iterable $raw, array $data, array $link, bool $mutable = false)
{
if (!is_array($raw) && !$raw instanceof Traversable) {
throw new InvalidArgumentException(sprintf('Expected a traversable, got %s', gettype($raw)));
}

parent::__construct($raw, $data);

$this->link = $link;
Expand Down
2 changes: 1 addition & 1 deletion src/Snapshot/ObjectSnapshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct($raw, array $data)
}

/** @return string object hash */
public function getObjectId()
public function getObjectId(): string
{
return $this->oid;
}
Expand Down

0 comments on commit 2eb3766

Please sign in to comment.