8000 Remove data variable · symfony/symfony@ad6f0dc · GitHub
[go: up one dir, main page]

Skip to content

Commit ad6f0dc

Browse files
committed
Remove data variable
1 parent 4986c26 commit ad6f0dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public function testStringFormData()
7979
*/
8080
public function testArrayCsrfToken()
8181
{
82-
$data = ['csrf' => []];
83-
$event = new FormEvent($this->form, $data);
82+
$event = new FormEvent($this->form, ['csrf' => []]);
8483

8584
$validation = new CsrfValidationListener('csrf', $this->tokenManager, 'unknown', 'Invalid.');
8685
$validation->preSubmit($event);

0 commit comments

Comments
 (0)
0