Skip to content

Commit b594679

Browse files
dinamicdkarlovi
authored andcommitted
~ fixed refactored behavior in AuthorizedFormHandler
1 parent 4c390ad commit b594679

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Form/Handler/AuthorizeFormHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function isRejected()
7272
}
7373

7474
/**
75-
* @return bool|void
75+
* @return bool
7676
*/
7777
public function process()
7878
{
@@ -93,7 +93,7 @@ public function process()
9393

9494
$this->form->handleRequest($request);
9595
if (!$this->form->isValid()) {
96-
return;
96+
return false;
9797
}
9898

9999
$this->onSuccess();

Tests/Form/Handler/AuthorizeFormHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public function testProcessWillHandleRequestOnPost()
376376
->willReturn(false)
377377
;
378378

379-
$this->assertNull($this->instance->process());
379+
$this->assertFalse($this->instance->process());
380380
}
381381

382382
public function testProcessWillHandleRequestOnPostAndWillProcessDataIfFormIsValid()

0 commit comments

Comments
 (0)