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 dbfee07 commit 0932169Copy full SHA for 0932169
Documentation/Global/Form/_codesnippets/_CommentController.php
@@ -17,7 +17,8 @@ public function __construct(
17
) {}
18
19
#[IgnoreValidation(['argumentName' => 'newComment'])]
20
- public function commentFormAction(?Comment $newComment = null): ResponseInterface {
+ public function commentFormAction(?Comment $newComment = null): ResponseInterface
21
+ {
22
if ($newComment === null) {
23
$newComment = new Comment();
24
$newComment->setDate(new \DateTime());
0 commit comments