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
4 changes: 2 additions & 2 deletions src/API/ReviewInvite.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public function __construct(private Repository $config)
* @param string $firstName
* @param string $lastName
* @param int $delay
* @param int $refCode
* @param string $refCode
* @return bool
*/
public function sendInvite(string $email, string $firstName, string $lastName, int $delay = 0, int $refCode = 0): bool
public function sendInvite(string $email, string $firstName, string $lastName, int $delay = 0, string $refCode = null): bool
{
$curl = curl_init(ReviewInvite::$url);

Expand Down
12 changes: 10 additions & 2 deletions src/Models/Reviews/ReviewContentModel.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

declare(strict_types=1);

namespace KingsCode\KlantenVertellen\Models\Reviews;
Expand All @@ -9,13 +8,22 @@
class ReviewContentModel extends Model
{
/**
* @deprecated
* @return string
*/
public function getAnswerToQuestion(): string
{
return $this->answerToQuestion;
}

/**
* @return string
*/
public function getRating(): string
{
return $this->rating;
}

/**
* @return string
*/
Expand All @@ -35,7 +43,7 @@ public function getQuestionType(): string
/**
* @return string
*/
public function getOrder(): string
public function getOrder(): int
{
return $this->order;
}
Expand Down