We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f4564 commit 6457f24Copy full SHA for 6457f24
features/bootstrap/FeatureContext.php
@@ -473,16 +473,15 @@ public function thereIsARelatedDummyWithFriends($nb)
473
}
474
475
/**
476
- * @Given there is an answer :answer to the question :question
+ * @Given there is an answer ":answer" to the question ":question"
477
*/
478
- public function thereIsAnAnswerToTheQuestion($a, $q)
+ public function thereIsAnAnswerToTheQuestion(string $a, string $q)
479
{
480
$answer = new Answer();
481
$answer->setContent($a);
482
483
$question = new Question();
484
$question->setContent($q);
485
-
486
$question->setAnswer($answer);
487
488
$this->manager->persist($answer);
0 commit comments