Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ before_install:
- git submodule update --init --recursive
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.x
- 8.x
script: phpunit tests/AllTests.php
4 changes: 2 additions & 2 deletions lib/model/Tweet.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(array $array) {
$this->user = new User($array);
}

function jsonSerialize() {
function jsonSerialize(): array {
return [
'id' => $this->id,
'createdAt' => $this->createdAt,
Expand Down Expand Up @@ -165,4 +165,4 @@ public function getUser() {
public function setUser(User $user) {
$this->user = $user;
}
}
}
4 changes: 2 additions & 2 deletions lib/model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(array $array) {
$this->screenName = $array['screen_name'];
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'name' => $this->name,
Expand Down Expand Up @@ -56,4 +56,4 @@ public function setScreenName($screenName) {
$this->screenName = $screenName;
}

}
}