Skip to content

Commit 58c7f32

Browse files
committed
Remove deprecations
1 parent 734863e commit 58c7f32

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controller/CaptchaController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public function initialize(): void {
3030

3131
/**
3232
* @param \Cake\Event\EventInterface $event
33-
* @return \Cake\Http\Response|null|void
33+
* @return void
3434
*/
35-
public function beforeFilter(EventInterface $event) {
35+
public function beforeFilter(EventInterface $event): void {
3636
if ($this->components()->has('Security')) {
3737
$this->components()->get('Security')->setConfig('validatePost', false);
3838
}

src/Controller/Component/CaptchaComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CaptchaComponent extends Component {
2626
*
2727
* @return void
2828
*/
29-
public function beforeFilter(EventInterface $event) {
29+
public function beforeFilter(EventInterface $event): void {
3030
$actions = $this->getConfig('actions');
3131
if ($actions && !in_array($this->getController()->getRequest()->getParam('action'), $actions, true)) {
3232
return;

0 commit comments

Comments
 (0)