Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Dec 30, 2020
1 parent 2694db4 commit 711dd58
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/API/PaginateResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ interface PaginateResponseInterface {
*
* @return string Returns the next page.
*/
public function getNextPage(): string;
public function getNextPage(): ?string;

/**
* Get the prev page.
*
* @return string Returns the prev page.
*/
public function getPrevPage(): string;
public function getPrevPage(): ?string;
}
4 changes: 2 additions & 2 deletions src/API/SubstituteRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getSubstituteName(): string;
/**
* Get the substitute value.
*
* @return string Returns the substitute value.
* @return mixed Returns the substitute value.
*/
public function getSubstituteValue(): string;
public function getSubstituteValue();
}
2 changes: 1 addition & 1 deletion src/Model/Attribute/StringNextPageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait StringNextPageTrait {
*
* @return string|null Returns the next page.
*/
public function getNextPage(): string {
public function getNextPage(): ?string {
return $this->nextPage;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Model/Request/GetPhotoRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getSubstituteName(): string {
/**
* {@inheritdoc}
*/
public function getSubstituteValue(): string {
return $this->getId() . "";
public function getSubstituteValue() {
return $this->getId();
}
}
4 changes: 2 additions & 2 deletions src/Model/Request/GetVideoRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getSubstituteName(): string {
/**
* {@inheritdoc}
*/
public function getSubstituteValue(): string {
return $this->getId() . "";
public function getSubstituteValue() {
return $this->getId();
}
}
2 changes: 1 addition & 1 deletion src/Serializer/ResponseDeserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static function deserializeVideoResponse(string $rawResponse): VideoRespo
* @param string $rawResponse The raw response.
* @return VideosResponse Returns the photos response.
*/
public static function deserializeVideosResponse(string $rawResponse): VideoResponse {
public static function deserializeVideosResponse(string $rawResponse): VideosResponse {

$decodedResponse = json_decode(trim($rawResponse), true);

Expand Down

0 comments on commit 711dd58

Please sign in to comment.