Fix types by casting [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-26 18:03:32 +03:00
committed by amine-mp
parent c493a43c35
commit bd1a84c5c3
25 changed files with 41 additions and 41 deletions

View File

@@ -805,7 +805,7 @@ class SubscribersTest extends \MailPoetTest {
expect($newsletter_option_field->getErrors())->false();
$newsletter_option = NewsletterOption::create();
$newsletter_option->option_field_id = $newsletter_option_field->id;
$newsletter_option->option_field_id = (int)$newsletter_option_field->id;
$newsletter_option->newsletter_id = $welcome_newsletter->id;
$newsletter_option->value = $value;
$newsletter_option->save();